Skip to content

Commit

Permalink
fix: sb5 empty decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Nov 24, 2020
1 parent bd489f5 commit 21795ff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions integrations/storybook/src/docs-page/DocsContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import { store } from '@component-controls/store/live_store';
export const PageContextContainer: FC = ({ children }) => {
const globOptions = useMemo(() => {
const o = getGlobalOptions();
o.decorators = o.decorators
? o.decorators.filter(
(d: { name: string }) => !d.name || !d.name.startsWith('with'),
)
: o.decorators;
if (o && Array.isArray(o.decorators)) {
o.decorators = o.decorators.filter(
(d: { name: string }) => !d.name || !d.name.startsWith('with'),
);
}
return o;
}, []);
const { storyId, docId, parameters } = useCurrentData();
Expand Down

0 comments on commit 21795ff

Please sign in to comment.