fix(editor): Update webhook paths when duplicating workflow (#9516)

This commit is contained in:
Milorad FIlipović
2024-05-29 12:51:33 +02:00
committed by GitHub
parent 4629354705
commit 3be7bb898b
5 changed files with 133 additions and 6 deletions

View File

@@ -89,11 +89,6 @@ export default defineComponent({
prevTagIds: currentTagIds,
};
},
async mounted() {
this.name = await this.workflowsStore.getDuplicateCurrentWorkflowName(this.data.name);
await this.$nextTick();
this.focusOnNameInput();
},
computed: {
...mapStores(useCredentialsStore, useUsersStore, useSettingsStore, useWorkflowsStore),
},
@@ -104,6 +99,11 @@ export default defineComponent({
}
},
},
async mounted() {
this.name = await this.workflowsStore.getDuplicateCurrentWorkflowName(this.data.name);
await this.$nextTick();
this.focusOnNameInput();
},
methods: {
focusOnSelect() {
this.dropdownBus.emit('focus');