mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
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:
@@ -335,7 +335,9 @@
|
|||||||
[page-name]
|
[page-name]
|
||||||
(when-let [page (when (and page-name (common-util/uuid-string? page-name))
|
(when-let [page (when (and page-name (common-util/uuid-string? page-name))
|
||||||
(db/entity [:block/uuid (uuid 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.ls-block-breadcrumb
|
||||||
[:div.text-sm
|
[:div.text-sm
|
||||||
(component-block/breadcrumb {}
|
(component-block/breadcrumb {}
|
||||||
|
|||||||
Reference in New Issue
Block a user