From d00488a94e45a68c46dad7c8084478a7f37478ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Wed, 1 Apr 2020 17:38:48 +0100 Subject: [PATCH] fix(ui): always render alerts if multi-grid is disabled If we have multi-grid on, user toggles all grids to hide details, then disables multi-grid, then we end up with alerts hidden and no way to show them. --- ui/src/Components/Grid/AlertGrid/Grid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/Components/Grid/AlertGrid/Grid.js b/ui/src/Components/Grid/AlertGrid/Grid.js index 9e2f48031..a64c06b6b 100644 --- a/ui/src/Components/Grid/AlertGrid/Grid.js +++ b/ui/src/Components/Grid/AlertGrid/Grid.js @@ -219,7 +219,7 @@ const Grid = observer( loadMore={this.loadMore} hasMore={false} > - {this.gridToggle.show + {this.gridToggle.show || grid.labelName === "" ? grid.alertGroups .slice(0, this.groupsToRender.value) .map((group) => (