Browse Source

[Minor] Do not consider request as failed

if returned object is empty
tags/1.8.0
Alexander Moisseev 5 years ago
parent
commit
e7e2963f96
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      interface/js/app/rspamd.js

+ 2
- 4
interface/js/app/rspamd.js View File

@@ -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;

Loading…
Cancel
Save