fix: publishing regression creates today's journal page

when navigating to home or journal. Doesn't make sense
to create pages in a read only context
This commit is contained in:
Gabriel Horner
2024-02-15 10:16:08 -05:00
parent b5a52edae8
commit edb4cd1df4

View File

@@ -348,7 +348,8 @@
(when (and (state/enable-journals? repo)
(not (:graph/loading? @state/state))
(not (state/loading-files? repo))
(not (state/whiteboard-route?)))
(not (state/whiteboard-route?))
(not config/publishing?))
(state/set-today! (date/today))
(when (or (config/db-based-graph? repo)
(config/local-file-based-graph? repo)