Skip to content

Commit

Permalink
Keep the version to be always v5 since there seems to be no change in
Browse files Browse the repository at this point in the history
oprating the preview iframe

ref: #855 (comment)
  • Loading branch information
indigolain committed Mar 15, 2024
1 parent 365331c commit 456f8eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/storycrawler/src/browser/stories-browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,13 @@ export class StoriesBrowser extends BaseBrowser {
}
return;
}
const version = isPreviewApi(api) ? 'v8' : 'v5';
const stories = (
isPreviewApi(api) && api.storyStoreValue
? Object.values(api.storyStoreValue.extract())
: api.raw
? api.raw()
: []
).map(_ => ({ id: _.id, kind: _.kind, story: _.name, version } as Story));
).map(_ => ({ id: _.id, kind: _.kind, story: _.name, version: 'v5' } as Story));
res({ stories, timeout: false });
};
getStories();
Expand Down

0 comments on commit 456f8eb

Please sign in to comment.