Skip to content

Commit

Permalink
feat(Project Authoring): don't open imported step for editing
Browse files Browse the repository at this point in the history
  • Loading branch information
hirokiterashima committed Sep 11, 2023
1 parent 956115f commit 0f68fd4
Showing 1 changed file with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
});
});
});
}
Expand Down

0 comments on commit 0f68fd4

Please sign in to comment.