Skip to content

Commit

Permalink
fix: page-resource registration
Browse files Browse the repository at this point in the history
  • Loading branch information
Z3d0X committed Feb 19, 2024
1 parent c54541b commit 34fb524
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/FilamentFabricatorPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Filament\Panel;
use Pboivin\FilamentPeek\FilamentPeekPlugin;
use Z3d0X\FilamentFabricator\Enums\BlockPickerStyle;
use Z3d0X\FilamentFabricator\Resources\PageResource;

class FilamentFabricatorPlugin implements Plugin
{
Expand All @@ -27,9 +26,10 @@ public function getId(): string

public function register(Panel $panel): void
{
$panel->resources([
config('filament-fabricator.page-resource') ?? PageResource::class,
]);
$panel->resources(array_filter([
config('filament-fabricator.page-resource'),
]));


if (! $panel->hasPlugin(FilamentPeekPlugin::ID)) {
//Automatically register FilamentPeekPlugin if it is not already registered
Expand Down

0 comments on commit 34fb524

Please sign in to comment.