From 4b37950401a5565303912a32dcafe5fccdfbc7c9 Mon Sep 17 00:00:00 2001 From: Paola De Bartolo Date: Mon, 9 Aug 2021 17:16:49 -0300 Subject: [PATCH] fix: fix setting of expand/collapse functionality Close #50 --- src/main/resources/META-INF/frontend/fc-orgchart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/META-INF/frontend/fc-orgchart.js b/src/main/resources/META-INF/frontend/fc-orgchart.js index c90b6a6..82b3064 100644 --- a/src/main/resources/META-INF/frontend/fc-orgchart.js +++ b/src/main/resources/META-INF/frontend/fc-orgchart.js @@ -108,7 +108,7 @@ class FCOrgChart extends PolymerElement { * */ var chartExpandCollapse = state.chartExpandCollapse; - if(chartExpandCollapse){ + if(!chartExpandCollapse){ this.querySelector(".orgchart").classList.add("noncollapsable") } else { this.querySelector(".orgchart").classList.remove("noncollapsable")