fix: A journal modified outside the app duplicates content

when syncing back to the app

related to LOG-3265
This commit is contained in:
Tienson Qin
2024-11-25 16:09:47 +08:00
parent ad52c68793
commit a1c6a4e985

View File

@@ -95,8 +95,7 @@
(page-handler/init-commands!)
(watch-for-date!)
(when (util/electron?) (file-handler/watch-for-current-graph-dir!))
(state/pub-event! [:graph/restored (state/get-current-repo)])))
(when (util/electron?) (file-handler/watch-for-current-graph-dir!))))
(p/catch (fn [error]
(log/error :exception error))))))