From 49069e199837bf255a41e694ea388d842f570118 Mon Sep 17 00:00:00 2001 From: Gabriel Horner Date: Mon, 30 Oct 2023 16:41:59 -0400 Subject: [PATCH] fix: block should save with selected tag While selecting an existing tag, block were saving with a tag that had characters cutoff from the end e.g. Drug_Class -> Drug_C or Comment_Class -> Comment_Cl --- src/main/frontend/handler/page.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/frontend/handler/page.cljs b/src/main/frontend/handler/page.cljs index d6f899f815..bef96591ee 100644 --- a/src/main/frontend/handler/page.cljs +++ b/src/main/frontend/handler/page.cljs @@ -219,7 +219,7 @@ q)) last-pattern (str "#" (when wrapped? page-ref/left-brackets) last-pattern)] (when (config/db-based-graph? (state/get-current-repo)) - (let [tag (string/trim q) + (let [tag (string/trim chosen) edit-block (state/get-edit-block)] (when (and (not (string/blank? tag)) (:block/uuid edit-block)) (let [tag-entity (db/entity [:block/name (util/page-name-sanity-lc tag)])]