Fix invalid sampling interval clearing logic
}
updateStatus(id, statusType, name, icon, deletable, stoppable, message) {
- if (!this.isUpdatableStatus()) {
- window.clearInterval(this.$refs.running.samplingIntervalId);
- }
-
this.$testStatusImage.attr('data-original-title', name);
this.$testStatusImage.attr('data-content', message);
this.$nextTick(() => this.$refs.runningTab.click());
return;
}
-
if (!this.isUpdatableStatus()) {
+ if (this.$refs.running) {
+ window.clearInterval(this.$refs.running.samplingIntervalId);
+ }
this.tab.display.report = true;
this.tab.display.running = false;
this.$nextTick(() => this.$refs.reportTab.click());
