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 17, 2018
1 parent b3d965b commit c98541f
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 @@ -251,7 +251,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 c98541f

Please sign in to comment.