From 272430ba06e44e06eb07694d6aef4d474fb741cb Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sun, 3 Apr 2022 10:00:48 +0800 Subject: [PATCH] fix: selectoption empty error --- components/vc-select/utils/legacyUtil.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/vc-select/utils/legacyUtil.ts b/components/vc-select/utils/legacyUtil.ts index cc3610aa86..6cc88d04ad 100644 --- a/components/vc-select/utils/legacyUtil.ts +++ b/components/vc-select/utils/legacyUtil.ts @@ -14,7 +14,7 @@ function convertNodeToOption any }; key: string | number; }; - const child = children.default; + const child = children?.default; return { key, value: value !== undefined ? value : key,