Skip to content

Commit 420a684

Browse files
committed
chore: remove lodash isEqual import
1 parent 571c500 commit 420a684

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Common/RJSF/widgets/Select.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616

1717
import React from 'react'
18-
import isEqual from 'lodash/isEqual'
1918
import { WidgetProps } from '@rjsf/utils'
2019
import ReactSelect, { MenuListProps, components } from 'react-select'
2120
import { PLACEHOLDERS } from '../constants'
@@ -58,8 +57,8 @@ export const Select = (props: WidgetProps) => {
5857

5958
const getOption = (value) =>
6059
multiple
61-
? selectOptions.filter((option) => value.some((val) => isEqual(val, option.value)))
62-
: selectOptions.find((option) => isEqual(value, option.value))
60+
? selectOptions.filter((option) => value.some((val) => val === option.value))
61+
: selectOptions.find((option) => value === option.value)
6362

6463
return (
6564
<ReactSelect

0 commit comments

Comments
 (0)