Skip to content

Commit abec194

Browse files
committed
update the cache key
1 parent 71ee6ee commit abec194

File tree

1 file changed

+2
-4
lines changed
  • app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/[id]/edit/charts/components

1 file changed

+2
-4
lines changed

app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/[id]/edit/charts/components/ChartsVisualize.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const ChartsVisualize: React.FC<VisualizationProps> = ({
8282
}>();
8383

8484
const { data: resourceData }: { data: any } = useQuery(
85-
[`charts_${params.id}`],
85+
[`res_charts_${params.id}`],
8686
() =>
8787
GraphQL(
8888
datasetResource,
@@ -198,16 +198,14 @@ const ChartsVisualize: React.FC<VisualizationProps> = ({
198198
}
199199
}
200200
}, [chartId, chartDetails, resourceData]);
201-
202-
201+
203202
useEffect(() => {
204203
if (chartId && chartDetails?.resourceChart) {
205204
refetch();
206205
updateChartData(chartDetails.resourceChart);
207206
}
208207
}, [chartId, chartDetails]);
209208

210-
211209
const updateChartData = (resourceChart: any) => {
212210
if (
213211
resourceChart.chartType === 'ASSAM_DISTRICT' ||

0 commit comments

Comments
 (0)