Skip to content

Commit

Permalink
fix(fields): WithLink trait fixed getLinkName
Browse files Browse the repository at this point in the history
  • Loading branch information
DissNik committed Sep 20, 2023
1 parent 4982d70 commit b557f0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Traits/Fields/WithLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public function getLinkValue(mixed $value = null): string|Closure

public function getLinkName(mixed $value = null): string
{
if (is_closure($this->linkValue)) {
return call_user_func($this->linkValue, $value);
if (is_closure($this->linkName)) {
return call_user_func($this->linkName, $value);
}

return $this->linkName;
Expand Down

0 comments on commit b557f0b

Please sign in to comment.