Skip to content

Commit

Permalink
Fix missing array key error in generate stories
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtimbrook committed Mar 6, 2024
1 parent b0dcaea commit 13a6e20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/GenerateStories.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 13a6e20

Please sign in to comment.