aboutsummaryrefslogtreecommitdiffstats
path: root/interface
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2018-08-05 13:05:23 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2018-08-05 13:05:23 +0300
commite7e2963f96a13feb7e1e0a4bf562cc78bba0cc0e (patch)
tree96811d7f62a2fa71d98b17208a3771a6d5892d87 /interface
parent7d053462fcbb5317f528918b9b0e63abf8d5ce5c (diff)
downloadrspamd-e7e2963f96a13feb7e1e0a4bf562cc78bba0cc0e.tar.gz
rspamd-e7e2963f96a13feb7e1e0a4bf562cc78bba0cc0e.zip
[Minor] Do not consider request as failed
if returned object is empty
Diffstat (limited to 'interface')
-rw-r--r--interface/js/app/rspamd.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js
index b83bb5cff..70f6fbfd5 100644
--- a/interface/js/app/rspamd.js
+++ b/interface/js/app/rspamd.js
@@ -199,10 +199,8 @@ function ($, d3pie, visibility, tab_stat, tab_graph, tab_config,
url: neighbours_status[ind].url + req_url,
success: function (json) {
neighbours_status[ind].checked = true;
- if (!jQuery.isEmptyObject(json) || req_url === "neighbours") {
- neighbours_status[ind].status = true;
- neighbours_status[ind].data = json;
- }
+ neighbours_status[ind].status = true;
+ neighbours_status[ind].data = json;
},
error: function (jqXHR, textStatus, errorThrown) {
neighbours_status[ind].checked = true;