From e6e46b522a86b45a8e54e84adc20aaba494fd626 Mon Sep 17 00:00:00 2001 From: sua yoo Date: Wed, 26 Apr 2023 13:41:41 -0700 Subject: [PATCH] hotfix: prevent polling during workflow edit --- frontend/src/pages/org/workflow-detail.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/org/workflow-detail.ts b/frontend/src/pages/org/workflow-detail.ts index e2348828..650a855b 100644 --- a/frontend/src/pages/org/workflow-detail.ts +++ b/frontend/src/pages/org/workflow-detail.ts @@ -191,10 +191,12 @@ export class WorkflowDetail extends LiteElement { this.isLoading = false; - // Restart timer for next poll - this.timerId = window.setTimeout(() => { - this.fetchWorkflow(); - }, 1000 * POLL_INTERVAL_SECONDS); + if (!this.isEditing) { + // Restart timer for next poll + this.timerId = window.setTimeout(() => { + this.fetchWorkflow(); + }, 1000 * POLL_INTERVAL_SECONDS); + } } render() {