From 53dae328975c98297887b14adf94dc7713d78c1f Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Mon, 26 Jul 2021 16:50:21 +0200 Subject: [PATCH] Fix multiple messages on windows after change config with reboot --- cps/static/js/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cps/static/js/main.js b/cps/static/js/main.js index ce930cc3..8a31c18c 100644 --- a/cps/static/js/main.js +++ b/cps/static/js/main.js @@ -611,7 +611,10 @@ $(function() { if (xhr.status < 400) { $("#spinning_success").hide(); clearInterval(rebootInterval); - handle_response(data.result); + if (data.result) { + handle_response(data.result); + data.result = ""; + } } }, });