From 192bfb3b7d3621995bc4dd2916bed5b777f01cc6 Mon Sep 17 00:00:00 2001 From: Gytis Vinclovas Date: Thu, 20 Dec 2018 16:20:30 +0200 Subject: [PATCH] Disabling warning if story is not set in async storage. --- app/react-native/src/preview/index.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/react-native/src/preview/index.js b/app/react-native/src/preview/index.js index 1f0f7f6ad653..3f1e531c451a 100644 --- a/app/react-native/src/preview/index.js +++ b/app/react-native/src/preview/index.js @@ -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; }