diff --git a/src/components/Discover/Conformance/ConformanceSidebar.vue b/src/components/Discover/Conformance/ConformanceSidebar.vue index 42b216f..0d371dd 100644 --- a/src/components/Discover/Conformance/ConformanceSidebar.vue +++ b/src/components/Discover/Conformance/ConformanceSidebar.vue @@ -394,8 +394,10 @@ watch(isSubmittedData, (newValue) => { }); // When opening a rule file, display the saved options, rules, and time +let reportWatchTimerId = null; watch(conformanceTempReportData, (newValue) => { - setTimeout(() => { + if (reportWatchTimerId) clearTimeout(reportWatchTimerId); + reportWatchTimerId = setTimeout(() => { if (newValue !== null) { const rule = newValue.rule; @@ -1722,6 +1724,7 @@ emitter.on("isRadioActSeqFromToChange", (data) => { // beforeUnmount onBeforeUnmount(() => { + if (reportWatchTimerId) clearTimeout(reportWatchTimerId); isSubmitReset(); selectTimeReset(); });