fix(editor): Prevent execution list to load back when leaving the route (#6697)

fix(editor): prevent execution list to load back when leaving the route
This commit is contained in:
Csaba Tuncsik 2023-07-18 17:08:08 +02:00 committed by GitHub
parent 522015f5b4
commit f93b821bbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,8 +126,10 @@ export default defineComponent({
}, },
watch: { watch: {
$route(to: Route, from: Route) { $route(to: Route, from: Route) {
const workflowChanged = from.params.name !== to.params.name; if (to.params.name) {
void this.initView(workflowChanged); const workflowChanged = from.params.name !== to.params.name;
void this.initView(workflowChanged);
}
if (to.params.executionId) { if (to.params.executionId) {
const execution = this.workflowsStore.getExecutionDataById(to.params.executionId); const execution = this.workflowsStore.getExecutionDataById(to.params.executionId);
@ -545,6 +547,7 @@ export default defineComponent({
} }
}, },
async openWorkflow(workflowId: string): Promise<void> { async openWorkflow(workflowId: string): Promise<void> {
console.log('openWorkflow', workflowId);
await this.loadActiveWorkflows(); await this.loadActiveWorkflows();
let data: IWorkflowDb | undefined; let data: IWorkflowDb | undefined;