Commit 53e5af58 authored by Zachary Seguin's avatar Zachary Seguin

Fix issue where only first info could be loaded

parent 439435d1
......@@ -63,6 +63,8 @@ class AlertDetailsPage extends mixin(Navigation) {
if (this.forceTransition) {
log.warn('Redirecting to first info block: ' + this.forceTransition);
this.transitionTo('alert-details', { alert_id: this.state.alert.id, info_id: this.forceTransition });
this.forceTransition = null;
}
}
......
......@@ -50415,6 +50415,8 @@ var AlertDetailsPage = (function (_mixin) {
if (this.forceTransition) {
_logger2['default'].warn('Redirecting to first info block: ' + this.forceTransition);
this.transitionTo('alert-details', { alert_id: this.state.alert.id, info_id: this.forceTransition });
this.forceTransition = null;
}
}
}, {
......@@ -50735,7 +50737,6 @@ var BasePage = (function (_React$Component) {
key: 'relativeTime',
value: function relativeTime(date) {
var minutes = _moment2['default'].tz(date, this.props.settings.timezone).diff((0, _moment2['default'])(), 'minutes');
console.log(minutes);
var past = minutes < 0;
minutes = Math.abs(minutes);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment