mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 06:41:17 +08:00
Clean out the store if configure
fails
This commit is contained in:
parent
3c1708b452
commit
1582a91074
@ -46,6 +46,10 @@ export default class ConfigApi {
|
||||
// If we are accessing the site, but the error is not fixed yet.
|
||||
// There we can render the error.
|
||||
this._renderError(error);
|
||||
|
||||
// Clear out the store as chances as only some of the stories will have
|
||||
// made it in before the error was thrown
|
||||
this._storyStore.clean();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user