Skip to content

Commit

Permalink
fix: do not use lodash/memoize (#26709)
Browse files Browse the repository at this point in the history
  • Loading branch information
rusackas authored Jan 22, 2024
1 parent a49526d commit ef4878b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset-frontend/src/utils/getControlsForVizType.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ef4878b

Please sign in to comment.