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.js14
1 files changed, 11 insertions, 3 deletions
diff --git a/interface/js/app/history.js b/interface/js/app/history.js
index 24fd7f98a..c04c004ea 100644
--- a/interface/js/app/history.js
+++ b/interface/js/app/history.js
@@ -427,9 +427,17 @@ function($, _, Humanize) {
.map(function (d){ return d.data; });
if (neighbours_data.length > 0) {
var data = {};
- data.rows = [].concat.apply([], neighbours_data
- .map(function(e) {return e.rows;}));
- data.version = neighbours_data[0].version;
+ if (neighbours_data[0].version) {
+ data.rows = [].concat.apply([], neighbours_data
+ .map(function (e) {
+ return e.rows;
+ }));
+ data.version = neighbours_data[0].version;
+ }
+ else {
+ // Legacy version
+ data = [].concat.apply([], neighbours_data);
+ }
var items = process_history_data(data);
ft.history = FooTable.init("#historyTable", {