Skip to content

Commit

Permalink
fix: do not backup persist_var
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Sep 8, 2022
1 parent e82defb commit ed18d13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/frontend/util/persist_var.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,13 @@

ISave
(-save [_]
(when-not (config/demo-graph?)
(if (config/demo-graph?)
(p/resolved nil)
(let [path (load-path location)
repo (state/get-current-repo)
content (str (get-in @*value [repo :value]))
dir (config/get-repo-dir repo)]
(fs/write-file! repo dir path content nil))))
(fs/write-file! repo dir path content {:skip-compare? true}))))

IDeref
(-deref [_this]
Expand Down

0 comments on commit ed18d13

Please sign in to comment.