fix: Prevent redirect when outside of executions home (no-changelog) (#6305)

fix: prevent redirect when outside of executions home (no-changelog)
This commit is contained in:
Alex Grozav 2023-06-01 12:21:04 +03:00 committed by GitHub
parent 1b321416c0
commit f7708c9159
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -449,12 +449,15 @@ export default defineComponent({
!this.temporaryExecution
) {
this.workflowsStore.activeWorkflowExecution = this.executions[0];
this.$router
.push({
name: VIEWS.EXECUTION_PREVIEW,
params: { name: this.currentWorkflow, executionId: this.executions[0].id },
})
.catch(() => {});
if (this.$route.name === VIEWS.EXECUTION_HOME) {
this.$router
.push({
name: VIEWS.EXECUTION_PREVIEW,
params: { name: this.currentWorkflow, executionId: this.executions[0].id },
})
.catch(() => {});
}
}
},
async tryToFindExecution(executionId: string, attemptCount = 0): Promise<void> {