From b98c987b9e17ee2eb15cd528410375288511a42c Mon Sep 17 00:00:00 2001 From: wibetter <365533093@qq.com> Date: Mon, 14 Nov 2022 22:21:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(amis-saas-7727):=20=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E7=BC=96=E5=86=99=E9=97=AE=E9=A2=98=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I42d5b784787917bd270590ae5575cf34be26e0cd --- packages/amis-editor-core/src/store/node.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/amis-editor-core/src/store/node.ts b/packages/amis-editor-core/src/store/node.ts index 5b4a2fe9d..ed00ad596 100644 --- a/packages/amis-editor-core/src/store/node.ts +++ b/packages/amis-editor-core/src/store/node.ts @@ -525,7 +525,7 @@ export const EditorNode = types function getClosestParentByType(type: string): EditorNodeType | void { let node = self; - while ((node = node.parent)) { + while (node === node.parent) { if (node.schema.type === type) { return node as EditorNodeType; }