mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 22:21:27 +08:00
FIX sometimes storyName being undefined when url is '/'
This commit is contained in:
parent
096877032e
commit
852ee89639
@ -28,7 +28,7 @@ function fillHierarchy(namespaces, hierarchy, story) {
|
||||
fillHierarchy(namespaces.slice(1), childHierarchy, story);
|
||||
}
|
||||
|
||||
export function resolveStoryHierarchy(storyName, hierarchySeparator) {
|
||||
export function resolveStoryHierarchy(storyName = '', hierarchySeparator) {
|
||||
if (!hierarchySeparator) {
|
||||
return [storyName];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user