diff --git a/packages/tables/src/Columns/Concerns/CanFormatState.php b/packages/tables/src/Columns/Concerns/CanFormatState.php index c98f6e7852..977c15f051 100644 --- a/packages/tables/src/Columns/Concerns/CanFormatState.php +++ b/packages/tables/src/Columns/Concerns/CanFormatState.php @@ -137,13 +137,7 @@ trait CanFormatState public function getFormattedState() { - $state = $this->getState(); - - if ($this->formatStateUsing) { - $state = $this->evaluate($this->formatStateUsing, [ - 'state' => $state, - ]); - } + $state = $this->evaluate($this->formatStateUsing ?? fn ($state) => $state); if ($this->prefix) { $state = $this->evaluate($this->prefix) . $state;