Skip to content

Commit ea2916c

Browse files
authored
Update MultiSelect.js issue #7724: do not return option as object if optionValue is present (#7726)
1 parent 1cb6d3e commit ea2916c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

components/lib/multiselect/MultiSelect.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -620,9 +620,7 @@ export const MultiSelect = React.memo(
620620
}
621621

622622
if (props.optionValue) {
623-
const data = ObjectUtils.resolveFieldData(option, props.optionValue);
624-
625-
return data !== null ? data : option;
623+
return ObjectUtils.resolveFieldData(option, props.optionValue);
626624
}
627625

628626
return option && option.value !== undefined ? option.value : option;

0 commit comments

Comments
 (0)