fix: can't expand/collapse on publishing graphs

pull/10793/head
Tienson Qin 2024-01-12 06:41:10 +08:00
parent 98dd1c2b5c
commit 302d8b649a
1 changed files with 2 additions and 2 deletions

View File

@ -1783,7 +1783,7 @@
:on-click (fn [event]
(util/stop event)
(state/clear-edit!)
(if ref?
(if (or ref? config/publishing?)
(state/toggle-collapsed-block! uuid)
(if collapsed?
(editor-handler/expand-block! uuid)
@ -2943,7 +2943,7 @@
*control-show? (get container-state ::control-show?)
db-collapsed? (util/collapsed? block)
collapsed? (cond
(or ref-or-custom-query? (root-block? config block))
(or config/publishing? ref-or-custom-query? (root-block? config block))
(state/sub-collapsed uuid)
:else