diff --git a/src/Traits/Fields/WithLink.php b/src/Traits/Fields/WithLink.php index f2a524e92..ab9cdb3c0 100644 --- a/src/Traits/Fields/WithLink.php +++ b/src/Traits/Fields/WithLink.php @@ -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;