aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js/app/history.js
diff options
context:
space:
mode:
Diffstat (limited to 'interface/js/app/history.js')
-rw-r--r--interface/js/app/history.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/interface/js/app/history.js b/interface/js/app/history.js
index 3d06f667c..568c69763 100644
--- a/interface/js/app/history.js
+++ b/interface/js/app/history.js
@@ -340,7 +340,7 @@ define(["jquery", "app/rspamd", "d3", "footable"],
.map(function (d) { return d.data; });
if (neighbours_data.length && !differentVersions(neighbours_data)) {
let data = {};
- const version = neighbours_data[0].version;
+ const [{version}] = neighbours_data;
if (version) {
data.rows = [].concat.apply([], neighbours_data
.map(function (e) {
@@ -354,7 +354,7 @@ define(["jquery", "app/rspamd", "d3", "footable"],
$("#legacy-history-badge").show();
}
const o = process_history_data(data);
- const items = o.items;
+ const {items} = o;
rspamd.symbols.history = o.symbols;
if (Object.prototype.hasOwnProperty.call(rspamd.tables, "history") &&