From 62c484ca16a5d92d3bc9ee11ea01829ea4a7735e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Fri, 22 Nov 2024 10:03:01 +0100 Subject: [PATCH] fix(client): Missing `useCallback` dependencies --- client/src/components/dataset-card/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/dataset-card/index.tsx b/client/src/components/dataset-card/index.tsx index 14233c6..6f3f78b 100644 --- a/client/src/components/dataset-card/index.tsx +++ b/client/src/components/dataset-card/index.tsx @@ -251,7 +251,7 @@ const DatasetCard = ({ id, name, defaultLayerId, layers, metadata }: DatasetCard link.href = URL.createObjectURL(blob); link.click(); link.remove(); - }, [name, metadata, chartData, chartIsLoading, selectedDate]); + }, [chartIsLoading, chartData, locationIsLoading, locationData, selectedDate, name, metadata]); // When the layer is animated, show each month of the year in a loop useEffect(() => {