Skip to content

Commit

Permalink
Merge pull request #15 from plastic-io/ghpages-deploy
Browse files Browse the repository at this point in the history
only try and open graphs on Workspace route
  • Loading branch information
TonyGermaneri committed Sep 24, 2023
2 parents 0a7a06d + 95255e6 commit 9059a31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/Orchestrator/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ export default class GraphManager extends GraphEditorModule {
order: 10,
}));
hostRouter.beforeEach(async (to: any, from: any, next: any) => {
await graphOrchestratorStore.init(to.params.documentId);
if (to.name === "Workspace") {
await graphOrchestratorStore.init(to.params.documentId);
}
next();
});
}
Expand Down

0 comments on commit 9059a31

Please sign in to comment.