Skip to content

Commit

Permalink
fix: selectoption empty error
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Apr 3, 2022
1 parent 3274896 commit 272430b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/vc-select/utils/legacyUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function convertNodeToOption<OptionType extends BaseOptionType = DefaultOptionTy
children: { default?: () => any };
key: string | number;
};
const child = children.default;
const child = children?.default;
return {
key,
value: value !== undefined ? value : key,
Expand Down

0 comments on commit 272430b

Please sign in to comment.