Starting the process of multiple profit and loss, fixes numeric code bug.

This commit is contained in:
2021-10-22 18:53:09 -07:00
parent 16c0e679bc
commit 66ad411e3d
3 changed files with 21 additions and 11 deletions

View File

@@ -155,7 +155,13 @@
[:div.level-item
(update template 1 assoc
:value (get-in override (get-in template [1 :field]))
:value (let [value (get-in override (get-in template [1 :field])) ;; TODO this is really ugly to support maps or strings
value (if (map? value)
(dissoc value :key :new?)
value)]
(if (= value {})
nil
value))
:disabled is-disabled?
:on-change (fn [e]
(reset! value-repr