Skip to content

Commit

Permalink
check if docsOnly is set to hide the addon panels (#9687)
Browse files Browse the repository at this point in the history
check if docsOnly is set to hide the addon panels
  • Loading branch information
ndelangen authored Jan 31, 2020
2 parents b4713a2 + bebc24c commit 2b0f4a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ui/src/components/layout/desktop.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const Desktop = React.memo(
<Preview id="main" debug={previewProps} />
</S.Preview>

<S.Panel {...panelProps} hidden={viewMode !== 'story'}>
<S.Panel {...panelProps} hidden={viewMode !== 'story' || docsOnly}>
<Panel debug={panelProps} />
</S.Panel>

Expand Down

0 comments on commit 2b0f4a1

Please sign in to comment.