Skip to content

Commit

Permalink
You can navigate to story or docs entries
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed May 9, 2022
1 parent 270f466 commit 349ba7b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/api/src/lib/stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,6 @@ export const getComponentLookupList = memoize(1)((hash: StoriesHash) => {
}, [] as StoryId[][]);
});

// FIXME:
export const getStoriesLookupList = memoize(1)((hash: StoriesHash) => {
return Object.keys(hash).filter((k) => hash[k].type === 'story');
return Object.keys(hash).filter((k) => ['story', 'docs'].includes(hash[k].type));
});

0 comments on commit 349ba7b

Please sign in to comment.