fix: watch dir after a new graph has been created

This commit is contained in:
Tienson Qin
2022-09-30 00:03:52 +08:00
parent 749bcf5ce2
commit edf02203a3

View File

@@ -108,6 +108,8 @@
(if empty-graph?
(route-handler/redirect! {:to :import :query-params {:from "picker"}})
(route-handler/redirect-to-home!)))
(when-let [dir-name (config/get-repo-dir repo)]
(fs/watch-dir! dir-name))
(repo-handler/refresh-repos!)
(file-sync-restart!))