From: Alexander Moisseev Date: Sun, 5 Aug 2018 10:05:23 +0000 (+0300) Subject: [Minor] Do not consider request as failed X-Git-Tag: 1.8.0~312^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7e2963f96a13feb7e1e0a4bf562cc78bba0cc0e;p=thirdparty%2Frspamd.git [Minor] Do not consider request as failed if returned object is empty --- diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index b83bb5cffb..70f6fbfd5a 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;