From 2f62002813fa1a3c142a78dd8405fdef672299c7 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 8 Jun 2022 10:25:42 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/5127 1 --- app/src/protyle/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/index.ts b/app/src/protyle/index.ts index 58432aca0..42ca405de 100644 --- a/app/src/protyle/index.ts +++ b/app/src/protyle/index.ts @@ -147,7 +147,7 @@ class Protyle { }, getResponse => { onGet(getResponse, this.protyle, options.action); if (this.protyle.model) { - if (options.action.includes(Constants.CB_GET_FOCUS)) { + if (options.action?.includes(Constants.CB_GET_FOCUS)) { setPanelFocus(this.protyle.model.element.parentElement.parentElement); } updatePanelByEditor(this.protyle, false);