Skip to content

Commit 272430b

Browse files
committed
fix: selectoption empty error
1 parent 3274896 commit 272430b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/vc-select/utils/legacyUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function convertNodeToOption<OptionType extends BaseOptionType = DefaultOptionTy
1414
children: { default?: () => any };
1515
key: string | number;
1616
};
17-
const child = children.default;
17+
const child = children?.default;
1818
return {
1919
key,
2020
value: value !== undefined ? value : key,

0 commit comments

Comments
 (0)