fix: selectoption empty error

pull/5440/head
tangjinzhou 2022-04-03 10:00:48 +08:00
parent 327489603f
commit 272430ba06
1 changed files with 1 additions and 1 deletions

View File

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