From 58779a240458458a6e3c3a66f91e28e3a6b792ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Sun, 16 Sep 2018 18:21:12 +0100 Subject: [PATCH] fix(ui): sort alert groups by id before slicing This is a short term fix to reduce potential re-ordering of alert groups on the grid. This needs to be controlled by user. --- ui/src/Components/Grid/AlertGrid/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/src/Components/Grid/AlertGrid/index.js b/ui/src/Components/Grid/AlertGrid/index.js index 6d3cd9c18..fb671605a 100644 --- a/ui/src/Components/Grid/AlertGrid/index.js +++ b/ui/src/Components/Grid/AlertGrid/index.js @@ -95,6 +95,7 @@ const AlertGrid = observer( } > {Object.keys(alertStore.data.groups) + .sort() .slice(0, this.groupsToRender.value) .map(id => (