fix: don't create today's journal when it's loading graph

This commit is contained in:
Tienson Qin
2023-07-07 15:01:38 +08:00
parent f51d60cdc2
commit bd9a074888
3 changed files with 4 additions and 0 deletions

View File

@@ -880,6 +880,7 @@
[]
(when-let [repo (state/get-current-repo)]
(when (and (state/enable-journals? repo)
(not (:graph/loading? @state/state))
(not (state/loading-files? repo))
(not (state/whiteboard-route?)))
(state/set-today! (date/today))