fix(editor): Redirect to workflow editor after saving in debug mode (#7645)

This commit is contained in:
Csaba Tuncsik
2023-11-08 14:04:02 +01:00
committed by GitHub
parent 5df583f783
commit 020042ef1a
3 changed files with 41 additions and 11 deletions

View File

@@ -379,7 +379,17 @@ export default defineComponent({
name: this.workflowName,
tags: this.currentWorkflowTagIds,
});
if (saved) await this.settingsStore.fetchPromptsData();
if (saved) {
await this.settingsStore.fetchPromptsData();
if (this.$route.name === VIEWS.EXECUTION_DEBUG) {
await this.$router.replace({
name: VIEWS.WORKFLOW,
params: { name: this.currentWorkflowId },
});
}
}
},
onShareButtonClick() {
this.uiStore.openModalWithData({