Skip to content

Commit

Permalink
SourceLinks: Fix sourcelinks incorrectly not showing up
Browse files Browse the repository at this point in the history
  • Loading branch information
jeppester committed Dec 1, 2023
1 parent be4bda5 commit 097c2b2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .storybook/SourceLinks.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 097c2b2

Please sign in to comment.