File tree 2 files changed +3
-19
lines changed
2 files changed +3
-19
lines changed Original file line number Diff line number Diff line change 15
15
:temperature 36.4
16
16
; bool
17
17
:run-parallel true
18
- :environment { :enabled true }
18
+ [ :environment :enabled ] true
19
19
; string
20
20
:search " "
21
21
; view
Original file line number Diff line number Diff line change 34
34
(get-editor-fn config current-val)]))
35
35
36
36
(defn get-value [state path]
37
- (cond
38
- (keyword? path)
39
- (path @state)
40
-
41
- (vector? path)
42
- (get-in @state path)
43
-
44
- :else
45
- nil ))
37
+ (get @state path))
46
38
47
39
(defn set-value [state path v]
48
40
(println " set-value path: " path " value: " v)
49
- (cond
50
- (keyword? path)
51
- (swap! state assoc path v)
52
-
53
- (vector? path)
54
- (swap! state assoc-in path v)
55
-
56
- :else
57
- nil ))
41
+ (swap! state assoc path v))
58
42
59
43
(defn create-edit-element [state options]
60
44
[edit-element {:set-fn #(set-value state (:path options) %)
You can’t perform that action at this time.
0 commit comments