diff --git a/packages/zent/src/cascader/components/MenuContent.tsx b/packages/zent/src/cascader/components/MenuContent.tsx index 8477486c28..96edf4badd 100644 --- a/packages/zent/src/cascader/components/MenuContent.tsx +++ b/packages/zent/src/cascader/components/MenuContent.tsx @@ -266,7 +266,7 @@ class MenuContent extends Component { const parent = options.find(it => it.value === value[i]); options = getNodeChildren(options, value[i]); - if (options.length > 0) { + if (options?.length > 0) { PanelEls.push(this.renderCascaderItems(options, level, parent)); } }