hotfix: prevent polling during workflow edit

This commit is contained in:
sua yoo 2023-04-26 13:41:41 -07:00
parent 937ad4fe08
commit e6e46b522a
No known key found for this signature in database
GPG Key ID: 5AD1B4C02D4F0567

View File

@ -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() {