Skip to content

Commit bc86f24

Browse files
committed
replace _.isArray by Array.isArray
1 parent c551259 commit bc86f24

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packages/ra-core/src/form/FilterLiveForm.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import * as React from 'react';
22
import isEqual from 'lodash/isEqual';
33
import cloneDeep from 'lodash/cloneDeep';
44
import get from 'lodash/get';
5-
import isArray from 'lodash/isArray';
65
import mergeWith from 'lodash/mergeWith';
76
import set from 'lodash/set';
87
import { ReactNode, useEffect } from 'react';
@@ -173,7 +172,7 @@ export interface FilterLiveFormProps
173172

174173
// Lodash merge customizer to merge objects but not arrays
175174
const mergeCustomizer = (objValue: any, srcValue: any) => {
176-
if (isArray(srcValue)) {
175+
if (Array.isArray(srcValue)) {
177176
return srcValue;
178177
}
179178
};

0 commit comments

Comments
 (0)