fix: selectoption empty error

pull/5440/head
tangjinzhou 3 years ago
parent 327489603f
commit 272430ba06

@ -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,

Loading…
Cancel
Save