Skip to content

Commit

Permalink
Merge pull request #130 from gpibarra/model-shouldBeStrict
Browse files Browse the repository at this point in the history
Bug if BelongsToMany and model::shouldBeStrict
  • Loading branch information
CodeWithDennis authored Nov 3, 2024
2 parents 2e69bbc + 1d1d3d4 commit 3b1bef4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/SelectTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ protected function setUp(): void
return $component->getCustomKey($record);
});

$this->dehydrated(fn (SelectTree $component): bool => ! $component->getRelationship() instanceof BelongsToMany);

$this->suffixActions([
static fn (SelectTree $component): ?Action => $component->getCreateOptionAction(),
]);
Expand Down

0 comments on commit 3b1bef4

Please sign in to comment.