Skip to content

Commit

Permalink
Update page-blocks.blade.php (#214)
Browse files Browse the repository at this point in the history
Null Page Reference in FilamentFabricator Block Preloading
  • Loading branch information
rsandipermana authored Mar 4, 2025
1 parent b38ecbb commit 77e90e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/components/page-blocks.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
$blockClass = FilamentFabricator::getPageBlockFromName($blockType);
if (!empty($blockClass)) {
if (!empty($blockClass) && $page !== null) {
$blockClass::preloadRelatedData($page, $group);
}
}
Expand Down

0 comments on commit 77e90e3

Please sign in to comment.