From 76ee3085a4da1701778f441f1c1324f36e487c3d Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 22 Nov 2021 10:26:13 +0100 Subject: [PATCH] ui: traffic-control edit: simple duplicate networks detection Signed-off-by: Thomas Lamprecht --- www/window/TrafficControlEdit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/window/TrafficControlEdit.js b/www/window/TrafficControlEdit.js index db503bb7..33aac692 100644 --- a/www/window/TrafficControlEdit.js +++ b/www/window/TrafficControlEdit.js @@ -197,7 +197,7 @@ Ext.define('PBS.window.TrafficControlEdit', { if (!values.network) { values.network = ['0.0.0.0/0', '::/0']; } else { - values.network = values.network.split(/\s*,\s*/); + values.network = [...new Set(values.network.split(/\s*,\s*/))]; } if ('timeframe' in values && !values.timeframe) {