From 097c2b2f8bdea558478111cef98156340a2c4fcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesper=20S=C3=B8rensen?= Date: Fri, 1 Dec 2023 14:13:29 +0100 Subject: [PATCH] SourceLinks: Fix sourcelinks incorrectly not showing up --- .storybook/SourceLinks.jsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.storybook/SourceLinks.jsx b/.storybook/SourceLinks.jsx index 6e713d81..4710a4d9 100644 --- a/.storybook/SourceLinks.jsx +++ b/.storybook/SourceLinks.jsx @@ -15,14 +15,11 @@ export default function SourceLinks() { const { attachedCSFFile: { - meta: { - component, - parameters: { sourceLinks }, - }, + meta: { component }, }, } = useContext(DocsContext) - if (!component || !sourceLinks || !Object.keys(sourceLinks).length > 0) { + if (!component) { return null }