From ef4878b845ea2d3de3c0ad83a4ebfc220d8f14f4 Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Mon, 22 Jan 2024 12:36:43 -0700 Subject: [PATCH] fix: do not use lodash/memoize (#26709) --- superset-frontend/src/utils/getControlsForVizType.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superset-frontend/src/utils/getControlsForVizType.js b/superset-frontend/src/utils/getControlsForVizType.js index ae48b8b0d..8771d91dc 100644 --- a/superset-frontend/src/utils/getControlsForVizType.js +++ b/superset-frontend/src/utils/getControlsForVizType.js @@ -17,12 +17,12 @@ * under the License. */ -import memoize from 'lodash/memoize'; +import memoizeOne from 'memoize-one'; import { isControlPanelSectionConfig } from '@superset-ui/chart-controls'; import { getChartControlPanelRegistry } from '@superset-ui/core'; import { controls } from '../explore/controls'; -const memoizedControls = memoize((vizType, controlPanel) => { +const memoizedControls = memoizeOne((vizType, controlPanel) => { const controlsMap = {}; (controlPanel?.controlPanelSections || []) .filter(isControlPanelSectionConfig)