From ea9786c0f5c0a1c14dcad9e9c59ec863ad60a68e Mon Sep 17 00:00:00 2001 From: Tom Coleman Date: Thu, 16 Jul 2020 21:11:58 +1000 Subject: [PATCH] Fix bug --- lib/client-api/src/story_store.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/client-api/src/story_store.ts b/lib/client-api/src/story_store.ts index c176036582df..35f18739eade 100644 --- a/lib/client-api/src/story_store.ts +++ b/lib/client-api/src/story_store.ts @@ -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]);