Created
October 1, 2017 20:22
-
-
Save r6203/6bfb484bac8f0034cbad1ebfcef13cbf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(re-frame/reg-event-db | |
:save-client | |
(fn [db [_ client]] | |
(let [id (key client)] | |
(assoc-in db [:clients id] (:editing-client db))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment