Starting the process of multiple profit and loss, fixes numeric code bug.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user