fix(editor): fix for executions view auto-refresh and new workflow saving (#4462)

* 🐛 Fixing auto-refresh and save workflow bugs. Added executions filtering based on current workflow settings

* ✔️ Fixing a lint error
This commit is contained in:
Milorad FIlipović
2022-10-28 09:54:01 +02:00
committed by GitHub
parent c66929f53d
commit dbac7955f9
3 changed files with 20 additions and 3 deletions

View File

@@ -683,7 +683,7 @@ export const workflowHelpers = mixins(
async saveCurrentWorkflow({id, name, tags}: {id?: string, name?: string, tags?: string[]} = {}, redirect = true): Promise<boolean> {
const currentWorkflow = id || this.$route.params.name;
if (!currentWorkflow) {
if (!currentWorkflow || ['new', PLACEHOLDER_EMPTY_WORKFLOW_ID].includes(currentWorkflow)) {
return this.saveAsNewWorkflow({name, tags}, redirect);
}