We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33e02aa commit 166365fCopy full SHA for 166365f
1 file changed
src/client/ui/controls.js
@@ -2,19 +2,12 @@ import React from 'react';
2
3
export default class StorybookControls extends React.Component {
4
getKindNames() {
5
- const { storyStore, selectedKind } = this.props;
+ const { storyStore } = this.props;
6
if (!storyStore) {
7
return [];
8
}
9
10
- const kinds = storyStore.map(({ kind }) => kind);
11
- const selectedKindIndex = kinds.indexOf(selectedKind);
12
-
13
- // add the selected kind to the top of the list
14
- kinds.splice(selectedKindIndex, 1);
15
- kinds.unshift(selectedKind);
16
17
- return kinds;
+ return storyStore.map(({ kind }) => kind);
18
19
20
getStories(kind) {
0 commit comments