From d17fd670d4c3f3d0ffc34bec92f6c56f347f7c5a Mon Sep 17 00:00:00 2001 From: xiami <64689255+johnsonwong666@users.noreply.github.com> Date: Thu, 12 Dec 2024 10:13:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(Cascader):=20=E5=85=BC=E5=AE=B9=E4=B8=8D?= =?UTF-8?q?=E5=AD=98=E5=9C=A8option=E5=AF=BC=E8=87=B4=E7=9A=84=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=8A=A5=E9=94=99=20(#2074)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/zent/src/cascader/components/MenuContent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } }