Fix typescript check

This commit is contained in:
Michael Shilman 2019-09-06 21:17:50 -07:00
parent 7f9a5c431f
commit a253ecbe3f

View File

@ -45,7 +45,7 @@ export const DocsContainer: React.FunctionComponent<DocsContainerProps> = ({
context,
children,
}) => {
const { id: storyId, parameters = {} } = context || {};
const { id: storyId = null, parameters = {} } = context || {};
const options = parameters.options || {};
const theme = ensureTheme(options.theme);
const { components: userComponents = null } = parameters.docs || {};