Skip to content

Commit

Permalink
add small error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-dot committed Jun 28, 2024
1 parent e071a29 commit fc92353
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import { rootDocsRouteRef } from '../../routes';

// based on this https://github.com/backstage/backstage/blob/master/plugins/techdocs/src/reader/components/TechDocsReaderPage/TechDocsReaderPage.tsx
export const DeveloperGuidePage = () => {
const { kind, name, namespace } = useRouteRefParams(rootDocsRouteRef);
let { kind, name, namespace } = useRouteRefParams(rootDocsRouteRef);
kind = kind || 'unknown';

const entityRef = { kind, name, namespace };

return (
Expand Down

0 comments on commit fc92353

Please sign in to comment.