From 1c7771fe29b91fcfc52f3205e6309d6eecab3dc3 Mon Sep 17 00:00:00 2001 From: 2betop <2betop.cn@gmail.com> Date: Fri, 27 Oct 2023 11:57:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20crud=20=E7=82=B9?= =?UTF-8?q?=E9=80=89=E5=87=BA=E7=8E=B0=E6=97=A0=E7=BA=BF=E5=BE=AA=E7=8E=AF?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20Close:=20#8523?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis-core/src/store/formItem.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/amis-core/src/store/formItem.ts b/packages/amis-core/src/store/formItem.ts index be442b18c..91fa5c259 100644 --- a/packages/amis-core/src/store/formItem.ts +++ b/packages/amis-core/src/store/formItem.ts @@ -1253,7 +1253,7 @@ export const FormItemStore = StoreNode.named('FormItemStore') } }); - if (filteredOptions.length) { + if (filteredOptions.length && options.length) { filteredOptions = mapTree(filteredOptions, item => { if (~options.indexOf(item.value)) { return {