Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Story Docs page does not show the first story #13470

Closed
crobinson42 opened this issue Dec 17, 2020 · 1 comment
Closed

Story Docs page does not show the first story #13470

crobinson42 opened this issue Dec 17, 2020 · 1 comment

Comments

@crobinson42
Copy link

Describe the bug
When clicking on a Story's "Docs" tab, the first story is not shown under the "Stories" section of the Docs page.

Expected behavior
I expect the first story in the list to show under the "Stories" section on the docs page

Screenshots
image

Code snippets

Simple setup and 1 story:

// AccessLevel.stories.jsx

import React from 'react'

import AccessLevel from './index'

export default {
  title: 'Example/AccessLevel',
  component: AccessLevel,
}

const Template = args => <AccessLevel {...args} />

export const Level1 = Template.bind({})

Level1.args = {
  accessLevel: 1,
  showAllAccessLevels: true,
}

Level1.storyName = 'Level 1'

export const Level2 = Template.bind({})

Level2.args = {
  accessLevel: 2,
}

Level2.storyName = 'Level 2'

export const Level3 = Template.bind({})

Level3.args = {
  accessLevel: 3,
}

Level3.storyName = 'Level 3'

System
System:
OS: macOS 11.1
CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Binaries:
Node: 12.16.1 - ~/.nvm/versions/node/v12.16.1/bin/node
npm: 6.14.9 - ~/projects/node_modules/.bin/npm
Browsers:
Chrome: 87.0.4280.88
Firefox: 83.0
Safari: 14.0.2
npmPackages:
@storybook/addon-actions: ^6.1.11 => 6.1.11
@storybook/addon-essentials: ^6.1.11 => 6.1.11
@storybook/addon-links: ^6.1.11 => 6.1.11
@storybook/addons: ^6.1.11 => 6.1.11
@storybook/react: ^6.1.11 => 6.1.11

@shilman
Copy link
Member

shilman commented Dec 20, 2020

Closing as duplicate to #8093

@shilman shilman closed this as completed Dec 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants