diff --git a/app/Forms/Components/Link.php b/app/Forms/Components/Link.php index cdedfdfa..f9415b24 100644 --- a/app/Forms/Components/Link.php +++ b/app/Forms/Components/Link.php @@ -54,6 +54,7 @@ public function getLinks(): Collection if ($this->type === 'user') { return $this->getUsers(); } + return match ($this->type) { 'user' => $this->getUsers(), 'organization' => $this->getOrganization(),