fix: default level to open for linked refs

This commit is contained in:
Tienson Qin
2022-12-07 20:33:22 +08:00
committed by Andelf
parent fa35b16ead
commit d8fef76de2
2 changed files with 12 additions and 9 deletions

View File

@@ -3599,7 +3599,8 @@
(page-cp config page)
(when alias? [:span.text-sm.font-medium.opacity-50 " Alias"])]
(for [[parent blocks] parent-blocks]
(let [blocks' (map #(update % :block/children tree/non-consecutive-blocks->vec-tree) blocks)]
(let [blocks' (map #(update % :block/children (fn [col]
(tree/non-consecutive-blocks->vec-tree col 2))) blocks)]
(rum/with-key
(breadcrumb-with-container blocks' config)
(:db/id parent))))