diff --git a/src/Commands/GenerateStories.php b/src/Commands/GenerateStories.php index 740382f..fd541c8 100644 --- a/src/Commands/GenerateStories.php +++ b/src/Commands/GenerateStories.php @@ -282,7 +282,7 @@ private function buildStoryTemplate($item) $title = ucwords($item['path'], '/'); // If it's a root story, check if the name has been changed and update the parent title - if ($item['isRoot']) { + if (Arr::has($item, 'isRoot') && $item['isRoot']) { $name = $childStories[0]['name'] ?? false; if ($name) {