Skip to content

Commit 857b3d3

Browse files
committed
fix ->isEnabled()
1 parent c1c0589 commit 857b3d3

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

module.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"icon": "heroicon-c-tag",
2424
"placeholder": "https://raw.githubusercontent.com/tomatophp/filament-types/master/arts/3x1io-tomato-types.jpg",
2525
"type": "plugin",
26-
"version": "v1.0.22",
26+
"version": "v1.0.23",
2727
"github" : "https://github.com/tomatophp/filament-types",
2828
"docs" : "https://github.com/tomatophp/filament-types"
2929
}

src/FilamentTypesPlugin.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ public function getId(): string
2020

2121
public function register(Panel $panel): void
2222
{
23-
if(class_exists(Module::class)){
24-
if(\Nwidart\Modules\Facades\Module::find('FilamentTypes')?->isEnabled()){
25-
$this->isActive = true;
26-
}
23+
if(class_exists(Module::class) && \Nwidart\Modules\Facades\Module::find('FilamentTypes')?->isEnabled()){
24+
$this->isActive = true;
2725
}
2826
else {
2927
$this->isActive = true;

0 commit comments

Comments
 (0)