Skip to content

Commit 77e90e3

Browse files
Update page-blocks.blade.php (#214)
Null Page Reference in FilamentFabricator Block Preloading
1 parent b38ecbb commit 77e90e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/components/page-blocks.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111
$blockClass = FilamentFabricator::getPageBlockFromName($blockType);
1212
13-
if (!empty($blockClass)) {
13+
if (!empty($blockClass) && $page !== null) {
1414
$blockClass::preloadRelatedData($page, $group);
1515
}
1616
}

0 commit comments

Comments
 (0)