Skip to content

Commit

Permalink
Fix edge case when blueprint field is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
aerni committed Jul 3, 2024
1 parent ab454e7 commit 9f1bbf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Actions/ShouldGenerateSocialImages.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ public static function handle(Entry $entry): bool
}

// Only generate if the social images generator is turned on.
return $entry->seo_generate_social_images;
return $entry->seo_generate_social_images ?? false;
}
}

0 comments on commit 9f1bbf0

Please sign in to comment.