From e7e2963f96a13feb7e1e0a4bf562cc78bba0cc0e Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Sun, 5 Aug 2018 13:05:23 +0300 Subject: [PATCH] [Minor] Do not consider request as failed if returned object is empty --- interface/js/app/rspamd.js | 6 ++---- 1 file 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; -- 2.39.5