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
06b43ba5b7
This commit is contained in:
Gabriel Horner
2025-09-01 17:12:03 -04:00
parent dac7ad37a6
commit e9cdb52a39

View File

@@ -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 {}