Skip to content

Commit

Permalink
fix ->isEnabled()
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed Sep 17, 2024
1 parent be79470 commit 1893473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FilamentLocationsPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function getId(): string
public function register(Panel $panel): void
{
if(class_exists(Module::class)){
if(\Nwidart\Modules\Facades\Module::find('FilamentLocations')->isEnabled()){
if(\Nwidart\Modules\Facades\Module::find('FilamentLocations')?->isEnabled()){
$this->isActive = true;
}
}
Expand Down

0 comments on commit 1893473

Please sign in to comment.