fix: selectoption empty error
parent
327489603f
commit
272430ba06
|
@ -14,7 +14,7 @@ function convertNodeToOption<OptionType extends BaseOptionType = DefaultOptionTy
|
||||||
children: { default?: () => any };
|
children: { default?: () => any };
|
||||||
key: string | number;
|
key: string | number;
|
||||||
};
|
};
|
||||||
const child = children.default;
|
const child = children?.default;
|
||||||
return {
|
return {
|
||||||
key,
|
key,
|
||||||
value: value !== undefined ? value : key,
|
value: value !== undefined ? value : key,
|
||||||
|
|
Loading…
Reference in New Issue