Skip to content

Commit

Permalink
Persist sheet type properly from :put-sheet!
Browse files Browse the repository at this point in the history
  • Loading branch information
dhleong committed Nov 21, 2018
1 parent 0b05f60 commit 0d09f59
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cljs/wish/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,11 @@
[trim-v]
(fn-traced [{:keys [db]} [sheet-id sheet]]
{:db (-> db
(assoc-in [:sheets sheet-id] sheet)
(update-in [:sheets sheet-id]
(fn [old-value]
(merge
(select-keys old-value [:type])
sheet)))
(reset-sheet-err sheet-id))

; NOTE: we're probably on a :sheet page, and we might not have
Expand Down

0 comments on commit 0d09f59

Please sign in to comment.