mirror of
https://github.com/apache/superset.git
synced 2026-04-25 02:55:07 +00:00
chore: replace Lodash usage with native JS implementation (#31907)
Signed-off-by: hainenber <dotronghai96@gmail.com>
This commit is contained in:
@@ -50,7 +50,7 @@ import { mountExploreUrl } from 'src/explore/exploreUtils';
|
||||
import { postFormData } from 'src/explore/exploreUtils/formData';
|
||||
import { URL_PARAMS } from 'src/constants';
|
||||
import { SelectValue } from 'antd/lib/select';
|
||||
import { isEmpty, isString } from 'lodash';
|
||||
import { isEmpty } from 'lodash';
|
||||
|
||||
interface QueryDatabase {
|
||||
id?: number;
|
||||
@@ -280,7 +280,7 @@ export const SaveDatasetModal = ({
|
||||
// Remove the special filters entry from the templateParams
|
||||
// before saving the dataset.
|
||||
let templateParams;
|
||||
if (isString(datasource?.templateParams)) {
|
||||
if (typeof datasource?.templateParams === 'string') {
|
||||
const p = JSON.parse(datasource.templateParams);
|
||||
/* eslint-disable-next-line no-underscore-dangle */
|
||||
if (p._filters) {
|
||||
|
||||
Reference in New Issue
Block a user