diff --git a/packages/documentation/.storybook/blocks/footer.tsx b/packages/documentation/.storybook/blocks/footer.tsx index 4475b58911..75d20668eb 100644 --- a/packages/documentation/.storybook/blocks/footer.tsx +++ b/packages/documentation/.storybook/blocks/footer.tsx @@ -35,12 +35,14 @@ function getGitHubUrl(path: String) { return `${BASEURL}${path.replace(/^\./, '').replace(/\.stories\.ts$/, '.docs.mdx')}`; } -export default (params: { pathToStoryFile: String }) => ( +export default (params: { pathToStoryFile?: String }) => ( <>
- - Edit this page on GitHub - + {params.pathToStoryFile && ( + + Edit this page on GitHub + + )}