mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-01 05:05:25 +08:00
FIX deepscan issues
This commit is contained in:
parent
31493de04a
commit
770fbb8b0c
@ -1,5 +1,4 @@
|
||||
import React, { FunctionComponent } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import GraphiQL from 'graphiql';
|
||||
import 'graphiql/graphiql.css';
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user