mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 00:31:05 +08:00
Disable preview for now to avoid crashing the server
This commit is contained in:
parent
02546c008d
commit
75c2588b4f
@ -38,7 +38,8 @@ export default class ReactProvider extends Provider {
|
||||
}
|
||||
|
||||
renderPreview(state, api) {
|
||||
if (state.storiesHash[state.storyId]) {
|
||||
// FIXME: getPreview not implemented?
|
||||
if (state.storiesHash[state.storyId] && addons.getPreview) {
|
||||
const { kind, story } = state.storiesHash[state.storyId];
|
||||
|
||||
this.selection = { kind, story };
|
||||
|
Loading…
x
Reference in New Issue
Block a user