Skip to content

Commit

Permalink
Matěj is ťulpas and he didnt check for typos inside of HasParams Conc…
Browse files Browse the repository at this point in the history
…ern for Actions
  • Loading branch information
matejkrenek committed Jun 26, 2023
1 parent 828b5fd commit 4d96acc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Actions/Concerns/HasParams.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ trait HasParams

public function params(array | \Closure $params = []): static
{
$this->modalParams = $params;
$this->params = $params;

return $this;
}

public function getParams(): array
{
return $this->evaluate($this->modalParams, ['record' => $this->getRecord()]);
return $this->evaluate($this->params, ['record' => $this->getRecord()]);
}
}

0 comments on commit 4d96acc

Please sign in to comment.