From ceb9969ea588f5887190e76027959078849cedf1 Mon Sep 17 00:00:00 2001 From: deniz kusefoglu Date: Fri, 1 Dec 2017 11:48:18 -0800 Subject: [PATCH] Display a list of unique handlers instead of all handlers for an alert rule on the list page --- ui/src/shared/parsing/parseHandlersFromRule.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/src/shared/parsing/parseHandlersFromRule.js b/ui/src/shared/parsing/parseHandlersFromRule.js index a320a68ba2..eb79fdf0b4 100644 --- a/ui/src/shared/parsing/parseHandlersFromRule.js +++ b/ui/src/shared/parsing/parseHandlersFromRule.js @@ -31,5 +31,6 @@ export const getAlertNodeList = rule => { }, [] ) - return _.join(nodeList, ', ') + const uniqNodeList = _.uniq(nodeList) + return _.join(uniqNodeList, ', ') }