Skip to content

Commit 3d5d162

Browse files
authored
Merge pull request #65 from firelab/kc-BHP1-1289-fix-graph-results
2 parents b8ef07a + 9fb7864 commit 3d5d162

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

projects/behave/src/cljs/behave/components/results/graphs.cljs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
[re-frame.core :refer [subscribe]]))
44

55
(defn result-graphs [ws-uuid cell-data]
6-
(let [worksheet @(subscribe [:worksheet ws-uuid])
7-
graph-enabled? (get-in worksheet [:worksheet/graph-settings :graph-settings/enabled?])
6+
(let [graph-enabled? @(subscribe [:wizard/enable-graph-settings? ws-uuid])
87
graph-settings @(subscribe [:worksheet/graph-settings ws-uuid])]
98
(when (and graph-enabled? graph-settings)
109
(let [*output-uuids (subscribe [:worksheet/output-uuids-filtered ws-uuid])

projects/behave/src/cljs/behave/wizard/views.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@
660660
:icon-name :tables
661661
:selected? (= @*tab-selected :outputs)}])
662662

663-
(get-in @*worksheet [:worksheet/graph-settings :graph-settings/enabled?])
663+
@(subscribe [:wizard/enable-graph-settings? ws-uuid])
664664
(conj {:label (-> @(<t (bp "output_graphs"))
665665
s/capitalize-words)
666666
:tab :graph

0 commit comments

Comments
 (0)