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,6 +449,8 @@ export default defineComponent({
!this.temporaryExecution !this.temporaryExecution
) { ) {
this.workflowsStore.activeWorkflowExecution = this.executions[0]; this.workflowsStore.activeWorkflowExecution = this.executions[0];
if (this.$route.name === VIEWS.EXECUTION_HOME) {
this.$router this.$router
.push({ .push({
name: VIEWS.EXECUTION_PREVIEW, name: VIEWS.EXECUTION_PREVIEW,
@ -456,6 +458,7 @@ export default defineComponent({
}) })
.catch(() => {}); .catch(() => {});
} }
}
}, },
async tryToFindExecution(executionId: string, attemptCount = 0): Promise<void> { async tryToFindExecution(executionId: string, attemptCount = 0): Promise<void> {
// First check if executions exists in the DB at all // First check if executions exists in the DB at all