Skip to content

Commit

Permalink
Pass docsMode from refs too
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Jul 18, 2022
1 parent a1fd7e2 commit efea215
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/api/src/modules/refs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const map = (
};

export const init: ModuleFn<SubAPI, SubState, void> = (
{ store, provider, singleStory },
{ store, provider, singleStory, docsMode },
{ runCheck = true } = {}
) => {
const api: SubAPI = {
Expand Down Expand Up @@ -249,12 +249,10 @@ export const init: ModuleFn<SubAPI, SubState, void> = (
if (setStoriesData) {
storiesHash = transformSetStoriesStoryDataToStoriesHash(
map(setStoriesData, ref, { storyMapper }),
{
provider,
}
{ provider, docsMode }
);
} else if (storyIndex) {
storiesHash = transformStoryIndexToStoriesHash(storyIndex, { provider });
storiesHash = transformStoryIndexToStoriesHash(storyIndex, { provider, docsMode });
}
if (storiesHash) storiesHash = addRefIds(storiesHash, ref);

Expand Down

0 comments on commit efea215

Please sign in to comment.