mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
Fix #1184: dashboard refresh not working.
This commit is contained in:
parent
d22f0d44b6
commit
db4aec22f6
@ -91,10 +91,10 @@
|
||||
|
||||
_.each($scope.dashboard.widgets, function(row) {
|
||||
_.each(row, function(widget, i) {
|
||||
var newWidget = newWidgets[widget.id];
|
||||
var newWidget = newWidgets[widget.id][0];
|
||||
if (newWidget.visualization) {
|
||||
if (newWidget && newWidget[0].visualization.query.latest_query_data_id != widget.visualization.query.latest_query_data_id) {
|
||||
row[i] = new Widget(newWidget[0]);
|
||||
if (newWidget && newWidget.visualization.query.latest_query_data_id != widget.visualization.query.latest_query_data_id) {
|
||||
row[i] = new Widget(newWidget);
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -146,7 +146,7 @@
|
||||
}
|
||||
}));
|
||||
|
||||
$scope.refreshRate = _.max([120, refreshRate * 2]) * 1000;
|
||||
$scope.refreshRate = _.min([300, refreshRate]) * 1000;
|
||||
|
||||
autoRefresh();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user