Skip to content

Commit

Permalink
TagsFilter: Fix sidebar stories
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Oct 20, 2024
1 parent 84671f8 commit 816e595
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 14 additions & 1 deletion code/core/src/manager/components/sidebar/Sidebar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,20 @@ const meta = {
menu,
extra: [] as Addon_SidebarTopType[],
index: index,
indexJson: { entries: {}, v: 6 },
indexJson: {
entries: {
// force the tags filter menu to show in production
['dummy--dummyId']: {
id: 'dummy--dummyId',
name: 'Dummy story',
title: 'dummy',
importPath: './dummy.stories.js',
type: 'story',
tags: ['A', 'B', 'C', 'dev'],
},
},
v: 6,
},
storyId,
refId: DEFAULT_REF_ID,
refs: {},
Expand Down
2 changes: 0 additions & 2 deletions code/core/src/manager/components/sidebar/TagsFilterPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import type { Tag } from '@storybook/types';

import type { API } from '@storybook/core/manager-api';

import { isDOMComponent } from 'react-dom/test-utils';

const BUILT_IN_TAGS_SHOW = new Set(['play-fn']);

const Wrapper = styled.div({
Expand Down

0 comments on commit 816e595

Please sign in to comment.