Skip to content

Commit

Permalink
Set default
Browse files Browse the repository at this point in the history
  • Loading branch information
Baspa committed Nov 28, 2024
1 parent 0077adc commit 07e869d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/MediaPickerPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Filament\Contracts\Plugin;
use Filament\Panel;
use Filament\Support\Concerns\EvaluatesClosures;
use Vormkracht10\MediaPicker\Resources\MediaResource;

class MediaPickerPlugin implements Plugin
{
Expand Down Expand Up @@ -61,7 +62,7 @@ public static function get(): static

public function getResource(): string
{
return $this->resource ?? config('media-picker.resources.resource');
return $this->resource ?? config('media-picker.resources.resource') ?? MediaResource::class;
}

public function getLabel(): string
Expand Down

0 comments on commit 07e869d

Please sign in to comment.