fix: cleanup whiteboard page checks

This commit is contained in:
Peng Xiao
2022-11-16 09:33:14 +08:00
parent 01f25fdcb5
commit 84ecc4c897
4 changed files with 20 additions and 11 deletions

View File

@@ -3609,7 +3609,7 @@
(when (seq blocks)
(let [alias? (:block/alias? page)
page (db/entity (:db/id page))
whiteboard? (= "whiteboard" (:block/type page))]
whiteboard? (model/whiteboard-page? page)]
[:div.my-2 (cond-> {:key (str "page-" (:db/id page))}
(:ref? config)
(assoc :class "color-level px-2 sm:px-7 py-2 rounded"))