fix: do not use lodash/memoize (#26709)

This commit is contained in:
Evan Rusackas 2024-01-22 12:36:43 -07:00 committed by GitHub
parent a49526d984
commit ef4878b845
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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)