fix: selectoption empty error
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…
Reference in New Issue