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 Feb 6, 2019
1 parent 59cb26c commit c52c087
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 c52c087

Please sign in to comment.