Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Jul 16, 2020
1 parent 4f168a5 commit ea9786c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/client-api/src/story_store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -514,12 +514,7 @@ export default class StoryStore {
// and thus lose order. However `_kinds[x].order` preservers the original load order
const kindOrder = mapValues(this._kinds, ({ order }) => order);
const storySortParameter = this._globalMetadata.parameters?.options?.storySort;
const orderedIds = getSortedStoryIds(
denormalizedStories,
kindOrder,
storySortParameter,
options
);
const orderedIds = getSortedStoryIds(denormalizedStories, kindOrder, storySortParameter);

const storiesToReturn = options.normalizeParameters ? this._stories : denormalizedStories;
return orderedIds.map((id) => storiesToReturn[id]);
Expand Down

0 comments on commit ea9786c

Please sign in to comment.