Skip to content

Commit

Permalink
Merge pull request #18930 from zhyd1997/fix/handle-add
Browse files Browse the repository at this point in the history
Source-loader: Fix invalid call to CSF sanitize
  • Loading branch information
shilman authored Sep 26, 2022
2 parents 5723ac1 + 24efe76 commit 025487a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export function handleADD(node, parent, storiesOfIdentifiers) {
return {};
}

if (storyName.value) {
if (storyName.value && typeof storyName.value === 'string') {
const key = sanitize(storyName.value);
let idToFramework;
if (key && framework) {
Expand Down

0 comments on commit 025487a

Please sign in to comment.