fix: prevent page editing on published graphs

pull/8673/merge
Konstantinos Kaloutas 2023-03-25 11:36:57 +02:00 committed by Gabriel Horner
parent 7f93374802
commit e21de5c30b
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@
repo
(:db/id page)
:page))
(when (and (not hls-page?) (not fmt-journal?))
(when (and (not hls-page?) (not fmt-journal?) (not config/publishing?))
(reset! *input-value (if untitled? "" old-name))
(reset! *edit? true))))}
(when (not= icon "") [:span.page-icon icon])