From f5742c107a68389c0828de991e7f5e9745e20d67 Mon Sep 17 00:00:00 2001 From: roymondchen Date: Thu, 13 Mar 2025 14:30:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(editor):=20=E8=8E=B7=E5=8F=96=E5=85=B3?= =?UTF-8?q?=E8=81=94=E7=BB=84=E4=BB=B6=E7=9A=84=E6=96=B9=E6=B3=95=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/editor/src/services/events.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor/src/services/events.ts b/packages/editor/src/services/events.ts index ae59e6c4..336b1983 100644 --- a/packages/editor/src/services/events.ts +++ b/packages/editor/src/services/events.ts @@ -57,7 +57,7 @@ class Events extends BaseService { } public getMethod(type: string) { - return cloneDeep(methodMap[toLine(type)]); + return cloneDeep(methodMap[toLine(type)]) || []; } public resetState() {