Skip to content

Commit

Permalink
fix to prevent multiple evaluations when getStateUsing is called
Browse files Browse the repository at this point in the history
  • Loading branch information
borjajimnz committed Jan 4, 2025
1 parent 2bbfeeb commit b77c9d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/support/src/Concerns/HasCellState.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function getState(): mixed
}

$state = ($this->getStateUsing !== null) ?
$this->evaluate($this->getStateUsing) :
$this->getStateUsing :
$this->getStateFromRecord();

if (is_string($state) && ($separator = $this->getSeparator())) {
Expand Down

0 comments on commit b77c9d2

Please sign in to comment.