Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
j3rem1e committed Feb 28, 2021
1 parent 964c314 commit 9b4875e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser/collect-stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ export default (StoriesComponent, stories) => {
return all;
}

const unknowTemplate = template != null && templatesId.indexOf(template) < 0;
const unknownTemplate = template != null && templatesId.indexOf(template) < 0;

const storyFn = (args) => {
if (unknowTemplate) {
if (unknownTemplate) {
throw new Error(`Story ${name} is referencing an unknown template ${template}`);
}

Expand Down

0 comments on commit 9b4875e

Please sign in to comment.