diff --git a/src/SelectTree.php b/src/SelectTree.php index e2eda72..c4bb6bc 100644 --- a/src/SelectTree.php +++ b/src/SelectTree.php @@ -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(), ]);