From 184a94ca46ea11722f1527309862ccee6f5c236e Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Sun, 31 May 2020 20:36:27 +0000 Subject: [PATCH] fix tree sorting --- web/src/store/store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/store/store.js b/web/src/store/store.js index a9b37443..b1c389a8 100644 --- a/web/src/store/store.js +++ b/web/src/store/store.js @@ -222,7 +222,7 @@ export const store = new Vuex.Store({ // first sort alphabetically, then move failing clients to the top const sortedAlpha = output.sort((a, b) => (a.label > b.label ? 1 : -1)); const sortedByFailing = sortedAlpha.sort(a => - a.iconColor === "red" ? -1 : 1 + a.iconColor === "negative" ? -1 : 1 ); commit("loadTree", sortedByFailing); //commit("destroySubTable");