mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Update HasCellState.php
This commit is contained in:
@@ -310,6 +310,10 @@ trait HasCellState
|
||||
|
||||
$recordKey = (string) $record->getKey();
|
||||
|
||||
if (blank($recordKey)) {
|
||||
return $state();
|
||||
}
|
||||
|
||||
if (array_key_exists($recordKey, $this->cachedState)) {
|
||||
return $this->cachedState[$recordKey];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user