mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
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:
parent
522015f5b4
commit
f93b821bbb
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue