From 5ee0bb57cc87b187620b1a71bf13dbae42f75975 Mon Sep 17 00:00:00 2001 From: Palash Gupta Date: Wed, 12 Apr 2023 14:00:52 +0530 Subject: [PATCH] fix: max depth issue is fixed in dashboard (#2563) (cherry picked from commit 1726469aaad74169c7283c40239e1362a0e433aa) Signed-off-by: Prashant Shahi --- .../NewDashboard/DashboardVariablesSelection/VariableItem.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/container/NewDashboard/DashboardVariablesSelection/VariableItem.tsx b/frontend/src/container/NewDashboard/DashboardVariablesSelection/VariableItem.tsx index 9910252b3f..8841d10d0a 100644 --- a/frontend/src/container/NewDashboard/DashboardVariablesSelection/VariableItem.tsx +++ b/frontend/src/container/NewDashboard/DashboardVariablesSelection/VariableItem.tsx @@ -129,7 +129,8 @@ function VariableItem({ useEffect(() => { getOptions(); - }, [getOptions]); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, []); const handleChange = (value: string | string[]): void => { if (