Skip to content

Commit

Permalink
Disabling warning if story is not set in async storage.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gongreg committed Dec 20, 2018
1 parent eb7071b commit 192bfb3
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 192bfb3

Please sign in to comment.