From d92866aa2e7d2d9c1b570f1ca551d4f5bd1dcc7f Mon Sep 17 00:00:00 2001 From: Kamil Gabryjelski Date: Fri, 15 Apr 2022 13:45:37 +0200 Subject: [PATCH] chore: Clean redundant dependency from useMemo dep array --- .../controls/DndColumnSelectControl/DndColumnSelect.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/superset-frontend/src/explore/components/controls/DndColumnSelectControl/DndColumnSelect.tsx b/superset-frontend/src/explore/components/controls/DndColumnSelectControl/DndColumnSelect.tsx index 529d4c7c78f8b..e7b25908cf11c 100644 --- a/superset-frontend/src/explore/components/controls/DndColumnSelectControl/DndColumnSelect.tsx +++ b/superset-frontend/src/explore/components/controls/DndColumnSelectControl/DndColumnSelect.tsx @@ -126,10 +126,7 @@ export function DndColumnSelect(props: DndColumnSelectProps) { [onChange, optionSelector], ); - const popoverOptions = useMemo( - () => Object.values(options), - [optionSelector.values, options], - ); + const popoverOptions = useMemo(() => Object.values(options), [options]); const valuesRenderer = useCallback( () =>