8000 fix: load chart when added to dashboard · frappe/insights@1c82176 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1c82176

Browse files
fix: load chart when added to dashboard
1 parent 96a18af commit 1c82176

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

frontend/src2/dashboard/DashboardItem.vue

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ const chart = computed(() => {
2121
return getCachedChart(item.chart) as Chart
2222
})
2323
24+
if (!chart.value?.dataQuery.result.executedSQL) {
25+
dashboard.refreshChart(props.item.chart)
26+
}
27+
2428
watchDebounced(
2529
() => chart.value?.doc.config.order_by,
2630
() => dashboard.refreshChart(props.item.chart),

0 commit comments

Comments
 (0)
0