Skip to content

Commit

Permalink
Fix Team Saving issue (#164)
Browse files Browse the repository at this point in the history
If we have a team we want to save it, if we don't want don't want to pass anything.
  • Loading branch information
tonypartridge authored Feb 16, 2024
1 parent c47812d commit 9ba1c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/RoleResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public static function form(Form $form): Form
->options(
fn () => config('filament-spatie-roles-permissions.team_model', App\Models\Team::class)::pluck('name', 'id')
)
->dehydrated(fn ($state) => (int) $state <= 0)
->dehydrated(fn ($state) => (int) $state > 0)
->placeholder(__('filament-spatie-roles-permissions::filament-spatie.select-team'))
->hint(__('filament-spatie-roles-permissions::filament-spatie.select-team-hint')),
]),
Expand Down

0 comments on commit 9ba1c34

Please sign in to comment.