FIX sometimes storyName being undefined when url is '/'

This commit is contained in:
Norbert de Langen 2017-07-20 10:02:39 +02:00
parent 096877032e
commit 852ee89639

View File

@ -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];
}