File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import { PLACEHOLDERS } from '../constants'
21
21
import { getCommonSelectStyle } from '../utils'
22
22
23
23
import { ReactComponent as ArrowDown } from '../../../Assets/Icon/ic-chevron-down.svg'
24
+ import { deepEqual } from '@Common/Helper'
24
25
25
26
const commonStyles = getCommonSelectStyle ( )
26
27
@@ -57,8 +58,8 @@ export const Select = (props: WidgetProps) => {
57
58
58
59
const getOption = ( value ) =>
59
60
multiple
60
- ? selectOptions . filter ( ( option ) => value . some ( ( val ) => val === option . value ) )
61
- : selectOptions . find ( ( option ) => value === option . value )
61
+ ? selectOptions . filter ( ( option ) => value . some ( ( val ) => deepEqual ( val , option . value ) ) )
62
+ : selectOptions . find ( ( option ) => deepEqual ( value , option . value ) )
62
63
63
64
return (
64
65
< ReactSelect
You can’t perform that action at this time.
0 commit comments