Duration reset on rerun
@@ -12,7 +12,14 @@ import { buildPipelineUrl } from '../util/UrlUtils';
class RunDetailsHeader extends Component {
componentWillMount() {
- const { data: run } = this.props;
+ this._setDuration(this.props);
+ }
+ componentWillReceiveProps(nextProps) {
+ this._setDuration(nextProps);
+ }
+
+ _setDuration(props) {
+ const { data: run } = props;
const isRunning = () => run.isRunning() || run.isPaused() || run.isQueued();
// we need to make sure that we calculate with the correct time offset
const skewMillis = this.context.config.getServerBrowserTimeSkewMillis();
