Skip to content

Commit

Permalink
Merge pull request #5068 from storybooks/disable-persist-warning
Browse files Browse the repository at this point in the history
Disabling warning if story is not set in async storage.
  • Loading branch information
Gongreg committed Dec 20, 2018
2 parents 128e146 + 192bfb3 commit 30144da
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/react-native/src/preview/index.js
Expand Up @@ -198,14 +198,12 @@ export default class Preview {

_checkStory(selection) {
if (!selection || typeof selection !== 'object' || !selection.kind || !selection.story) {
console.warn('invalid storybook selection'); // eslint-disable-line no-console
return null;
}

const story = this._getStory(selection);

if (story.storyFn === null) {
console.warn('invalid storybook selection'); // eslint-disable-line no-console
return null;
}

Expand Down

0 comments on commit 30144da

Please sign in to comment.