FIX deepscan issues

This commit is contained in:
Norbert de Langen 2020-03-03 15:08:19 +01:00
parent 31493de04a
commit 770fbb8b0c
No known key found for this signature in database
GPG Key ID: 976651DA156C2825
2 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,4 @@
import React, { FunctionComponent } from 'react';
import PropTypes from 'prop-types';
import GraphiQL from 'graphiql';
import 'graphiql/graphiql.css';

View File

@ -31,7 +31,7 @@ const getDescription = (item: Item) => {
};
const mapper = ({ api, state }: Combo) => {
const { layout, location, customQueryParams, storiesHash, storyId } = state;
const { layout, location, customQueryParams, storyId } = state;
const story = api.getData(storyId);
const parameters = story ? story.parameters : {};
const docsOnly = story && story.parameters ? !!story.parameters.docsOnly : false;