Skip to content

Commit 1d1d3d4

Browse files
committed
fix dehydrated if BelongsToMany
1 parent 2e69bbc commit 1d1d3d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/SelectTree.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ protected function setUp(): void
136136
return $component->getCustomKey($record);
137137
});
138138

139+
$this->dehydrated(fn (SelectTree $component): bool => ! $component->getRelationship() instanceof BelongsToMany);
140+
139141
$this->suffixActions([
140142
static fn (SelectTree $component): ?Action => $component->getCreateOptionAction(),
141143
]);

0 commit comments

Comments
 (0)