Skip to content

Commit

Permalink
fix: daily journals not created on desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Jan 30, 2021
1 parent 30c5187 commit 6d1fd01
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/frontend/handler/repo.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,7 @@
(when (or (db/cloned? repo)
(and (config/local-db? repo)
;; config file exists
(let [path (config/get-config-path)
path (if (and (util/electron?) (config/local-db? repo))
(str (config/get-repo-dir repo) "/" path)
path)]
(let [path (config/get-config-path)]
(db/get-file path))))
(let [today-page (string/lower-case (date/today))]
(when (empty? (db/get-page-blocks-no-cache repo today-page))
Expand Down

0 comments on commit 6d1fd01

Please sign in to comment.