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,