Skip to content

Commit

Permalink
REMOVE hooks from extracted StoryItem (storybookjs#8256)
Browse files Browse the repository at this point in the history
REMOVE hooks from extracted StoryItem
  • Loading branch information
ndelangen authored Oct 1, 2019
2 parents eb8bee1 + 831dc9f commit e34da27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/client-api/src/story_store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ const toExtracted = <T>(obj: T) =>
if (typeof value === 'function') {
return acc;
}
if (key === 'hooks') {
return acc;
}
if (Array.isArray(value)) {
return Object.assign(acc, { [key]: value.slice().sort() });
}
Expand Down

0 comments on commit e34da27

Please sign in to comment.