فهرست منبع

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
Gabriel Horner 1 ماه پیش
والد
کامیت
e9cdb52a39
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      src/main/frontend/components/header.cljs

+ 3 - 1
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 {}