From 7b146294cb825f91e768b1b53a64868040861438 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Sandvik?= Date: Wed, 13 Sep 2023 11:30:33 +0200 Subject: [PATCH] chore: lint ignore --- src/components/periods/PeriodSelect.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/periods/PeriodSelect.js b/src/components/periods/PeriodSelect.js index 8b2a52ab3..f8261ac88 100644 --- a/src/components/periods/PeriodSelect.js +++ b/src/components/periods/PeriodSelect.js @@ -30,6 +30,7 @@ const PeriodSelect = ({ const prevYear = usePrevious(year) // Set periods when periodType or year changes + /* eslint-disable react-hooks/exhaustive-deps */ const periods = useMemo( () => periodType @@ -42,6 +43,7 @@ const PeriodSelect = ({ : [period], // saved map period (not included in depency array by design) [periodType, year, firstDate, lastDate] ) + /* eslint-enable react-hooks/exhaustive-deps */ // Increment/decrement year const changeYear = useCallback(