Skip to content

Commit

Permalink
Update Select.php
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed May 15, 2024
1 parent 4891065 commit c5e07f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/forms/src/Components/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ static function (Select $component): bool {

$recordsToDetach = array_diff(
$relatedRecords
->pluck(($relationship instanceof BelongsToMany) ? $relationship->getRelatedKeyName() : $relationship->getRelated()->getKeyName())
->pluck($relationship->getRelatedKeyName())
->map(static fn ($key): string => strval($key))
->all(),
$state ?? [],
Expand Down

0 comments on commit c5e07f4

Please sign in to comment.