From 1ea1733ad651ba0815add6b5b948e7fa8eb738e8 Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Tue, 18 Jun 2024 16:31:36 +0800 Subject: [PATCH] fix: make sure edit-block-f exists before calling it --- src/main/frontend/handler/editor.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/frontend/handler/editor.cljs b/src/main/frontend/handler/editor.cljs index e1a67082d..9be0099e0 100644 --- a/src/main/frontend/handler/editor.cljs +++ b/src/main/frontend/handler/editor.cljs @@ -875,7 +875,7 @@ (outliner-op/delete-blocks! blocks' nil)) (when sibling-block (let [{:keys [edit-block-f]} (move-to-prev-block repo sibling-block (:block/format block) "")] - (edit-block-f))))))) + (when edit-block-f (edit-block-f)))))))) (defn set-block-query-properties! [block-id all-properties key add?]