fix(editor): Active toggle incorrectly displayed as inactive in execution view (#9778)

This commit is contained in:
Iván Ovejero 2024-06-17 18:24:56 +02:00 committed by GitHub
parent 292bbb3f9f
commit 551fb6d7a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -98,9 +98,21 @@ export default defineComponent({
beforeMount() {
this.pushConnection.initialize();
},
mounted() {
async mounted() {
this.dirtyState = this.uiStore.stateIsDirty;
this.syncTabsWithRoute(this.$route);
if (this.workflowsStore.workflow.id === PLACEHOLDER_EMPTY_WORKFLOW_ID) {
const workflowId = this.$route.params.name as string;
const workflow = await this.workflowsStore.fetchWorkflow(workflowId);
this.workflowsStore.setWorkflowId(workflowId);
if (workflow.active) {
this.workflowsStore.setWorkflowActive(workflowId);
this.workflowsStore.setActive(workflow.active);
}
}
},
beforeUnmount() {
this.pushConnection.terminate();