mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
fix(filament): fix option label when no record (#1194)
This commit is contained in:
@@ -49,7 +49,8 @@ class Select extends ComponentsSelect
|
||||
}
|
||||
|
||||
return $this->searchable()
|
||||
->getOptionLabelUsing(fn (Model&Nameable $record): string => $record->getName());
|
||||
/** @phpstan-ignore-next-line */
|
||||
->getOptionLabelUsing(fn (mixed $value): string => $modelClass::find($value)->getName());
|
||||
}
|
||||
|
||||
public function escapeReservedChars(string $search): string
|
||||
|
||||
Reference in New Issue
Block a user