mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(editor): Fix workflow activation from the Workflows view (#4549)
🐛 Fixing a bug when activating workflow from workflows view
This commit is contained in:
committed by
GitHub
parent
026fb50512
commit
d2bec63cec
@@ -287,6 +287,10 @@ export const useWorkflowsStore = defineStore(STORES.WORKFLOWS, {
|
||||
if (index === -1) {
|
||||
this.activeWorkflows.push(workflowId);
|
||||
}
|
||||
if (this.workflowsById[workflowId]) {
|
||||
this.workflowsById[workflowId].active = true;
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
setWorkflowInactive(workflowId: string): void {
|
||||
@@ -294,6 +298,9 @@ export const useWorkflowsStore = defineStore(STORES.WORKFLOWS, {
|
||||
if (index !== -1) {
|
||||
this.activeWorkflows.splice(index, 1);
|
||||
}
|
||||
if (this.workflowsById[workflowId]) {
|
||||
this.workflowsById[workflowId].active = false;
|
||||
}
|
||||
},
|
||||
|
||||
async fetchActiveWorkflows(): Promise<string[]> {
|
||||
|
||||
Reference in New Issue
Block a user