From e9cdb52a397dca83e987cd71d084ab32435d77c3 Mon Sep 17 00:00:00 2001 From: Gabriel Horner Date: Mon, 1 Sep 2025 17:12:03 -0400 Subject: [PATCH] fix: add publishing workaround so that a page link can load Loading the publishing app with a journal page link e.g. #/page/00000001-2025-0901-0000-000000000000 failed with "Error: 139 is not ISeqable". Weirdly :block/tags in publishing app is returning integers instead of set of integers while the app loads. This was encountered before in https://github.com/logseq/logseq/commit/06b43ba5b7758201d87f0e93b87962fb9621b15c --- src/main/frontend/components/header.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/frontend/components/header.cljs b/src/main/frontend/components/header.cljs index 1f8037b5a3..f0ccb039ff 100644 --- a/src/main/frontend/components/header.cljs +++ b/src/main/frontend/components/header.cljs @@ -335,7 +335,9 @@ [page-name] (when-let [page (when (and page-name (common-util/uuid-string? page-name)) (db/entity [:block/uuid (uuid page-name)]))] - (when (and (ldb/page? page) (:block/parent page)) + ;; FIXME: in publishing? :block/tags incorrectly returns integer until fully restored + (when (and (if config/publishing? (not (state/sub :db/restoring?)) true) + (ldb/page? page) (:block/parent page)) [:div.ls-block-breadcrumb [:div.text-sm (component-block/breadcrumb {}