mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
parent
53f5f01f1d
commit
0455ab5cc9
@ -43,6 +43,7 @@ export function ensureStory(storyKinds, selectedKind, selectedStory) {
|
||||
const found = kindInfo.stories.find(item => item === selectedStory);
|
||||
if (found) return found;
|
||||
|
||||
// if the selected story is non-existant, select the first story
|
||||
return kindInfo.stories[0];
|
||||
}
|
||||
|
||||
|
@ -58,7 +58,7 @@ export function updateStore(queryParams, actions) {
|
||||
...customQueryParams
|
||||
} = queryParams;
|
||||
|
||||
if (selectedKind && selectedStory) {
|
||||
if (selectedKind) {
|
||||
actions.api.selectStory(selectedKind, selectedStory);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user