Skip to content

Commit

Permalink
fix nil recent paths
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc committed Mar 3, 2024
1 parent 9683196 commit 96d2db9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/renderer/document/handlers.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@

(defn add-recent
[db file-path]
(update db :recent #(-> % (conj file-path) distinct)))
(cond-> db
file-path
(update :recent #(->> % (conj file-path) distinct))))

(defn create-tab
[db document]
Expand Down

0 comments on commit 96d2db9

Please sign in to comment.