Skip to content

Commit

Permalink
create-app: add missing catalog-graph route
Browse files Browse the repository at this point in the history
Signed-off-by: Johan Haals <johan.haals@gmail.com>
  • Loading branch information
jhaals authored and benjdlambert committed Jan 28, 2022
1 parent 2923075 commit 24ef620
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .changeset/purple-steaks-design.md
@@ -0,0 +1,18 @@
---
'@backstage/create-app': patch
---

Adds missing `/catalog-graph` route to `<CatalogGraphPage/>`.

To fix this problem for a recently created app please update your `app/src/App.tsx`

```diff
+ import { CatalogGraphPage } from '@backstage/plugin-catalog-graph';

... omitted ...

</Route>
<Route path="/settings" element={<UserSettingsPage />} />
+ <Route path="/catalog-graph" element={<CatalogGraphPage />} />
</FlatRoutes>
```
Expand Up @@ -29,6 +29,7 @@ import { Root } from './components/Root';
import { AlertDisplay, OAuthRequestDialog } from '@backstage/core-components';
import { createApp } from '@backstage/app-defaults';
import { FlatRoutes } from '@backstage/core-app-api';
import { CatalogGraphPage } from '@backstage/plugin-catalog-graph';

const app = createApp({
apis,
Expand Down Expand Up @@ -80,6 +81,7 @@ const routes = (
{searchPage}
</Route>
<Route path="/settings" element={<UserSettingsPage />} />
<Route path="/catalog-graph" element={<CatalogGraphPage />} />
</FlatRoutes>
);

Expand Down

0 comments on commit 24ef620

Please sign in to comment.