From 0f68fd404446e5448bfbc21f07c41d8636020f26 Mon Sep 17 00:00:00 2001 From: Hiroki Terashima Date: Mon, 11 Sep 2023 15:30:27 -0700 Subject: [PATCH] feat(Project Authoring): don't open imported step for editing #1414 --- .../choose-import-step-location.component.ts | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/app/authoring-tool/import-step/choose-import-step-location/choose-import-step-location.component.ts b/src/app/authoring-tool/import-step/choose-import-step-location/choose-import-step-location.component.ts index 93552bb18b4..54f39bb8f3c 100644 --- a/src/app/authoring-tool/import-step/choose-import-step-location/choose-import-step-location.component.ts +++ b/src/app/authoring-tool/import-step/choose-import-step-location/choose-import-step-location.component.ts @@ -37,17 +37,10 @@ export class ChooseImportStepLocationComponent { this.insertNodesService.insertNodes(nodesWithNewNodeIds, nodeIdToInsertInsideOrAfter); this.projectService.checkPotentialStartNodeIdChangeThenSaveProject().then(() => { this.projectService.refreshProject(); - if (nodesWithNewNodeIds.length === 1) { - const newNode = nodesWithNewNodeIds[0]; - this.router.navigate(['../../node', newNode.id], { - relativeTo: this.route, - state: { - newComponents: newNode.components - } - }); - } else { - this.router.navigate(['../..'], { relativeTo: this.route }); - } + this.router.navigate(['../..'], { + relativeTo: this.route, + state: { newNodes: nodesWithNewNodeIds } + }); }); }); }