From 13a6e206829a676892b621a911a62ea79d44209e Mon Sep 17 00:00:00 2001 From: Tim Brook Date: Wed, 6 Mar 2024 13:36:33 -0600 Subject: [PATCH] Fix missing array key error in generate stories --- src/Commands/GenerateStories.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {