Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 60fa696

Browse files
Merge pull request SORMAS-Foundation#4147 from ImisDevelopers/bugfix-4052-contact-dashboard-expanding
SORMAS-Foundation#4052 Fix bug where contact officer could not expand map and chart
2 parents 1b5f7e6 + 18c8b9d commit 60fa696

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

sormas-ui/src/main/java/de/symeda/sormas/ui/dashboard/contacts/ContactsDashboardView.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,9 @@ protected VerticalLayout createEpiCurveLayout() {
379379
rowsLayout.setHeightUndefined();
380380
}
381381
caseStatisticsLayout.setVisible(!expanded);
382-
networkDiagramRowLayout.setVisible(!expanded);
382+
if (networkDiagramRowLayout != null) {
383+
networkDiagramRowLayout.setVisible(!expanded);
384+
}
383385
contactsStatisticsLayout.setVisible(!expanded);
384386
});
385387

@@ -418,7 +420,9 @@ protected Optional<VerticalLayout> createMapLayout() {
418420
rowsLayout.setHeightUndefined();
419421
}
420422
caseStatisticsLayout.setVisible(!expanded);
421-
networkDiagramRowLayout.setVisible(!expanded);
423+
if (networkDiagramRowLayout != null) {
424+
networkDiagramRowLayout.setVisible(!expanded);
425+
}
422426
contactsStatisticsLayout.setVisible(!expanded);
423427
});
424428

0 commit comments

Comments
 (0)