mirror of
https://github.com/logseq/logseq.git
synced 2026-04-25 06:35:02 +00:00
fix: + New button error
fixes https://github.com/logseq/db-test/issues/543
This commit is contained in:
6
deps/outliner/src/logseq/outliner/core.cljs
vendored
6
deps/outliner/src/logseq/outliner/core.cljs
vendored
@@ -243,12 +243,16 @@
|
||||
(if (ldb/page? (d/entity db (:db/id block)))
|
||||
block
|
||||
(let [tags' (cond
|
||||
(qualified-keyword? tags)
|
||||
(or (integer? tags)
|
||||
(qualified-keyword? tags)
|
||||
(and (vector? tags)
|
||||
(= :block/uuid (first tags))))
|
||||
[(d/entity db tags)]
|
||||
(every? qualified-keyword? tags)
|
||||
(map #(d/entity db %) tags)
|
||||
:else
|
||||
tags)
|
||||
block (assoc block :block/tags tags')
|
||||
page-class? (fn [t]
|
||||
(and (map? t) (contains? db-class/page-classes
|
||||
(or (:db/ident t)
|
||||
|
||||
Reference in New Issue
Block a user