From c42a39a1d078344c4abf8820f29bfe41219b3a25 Mon Sep 17 00:00:00 2001 From: Lupu Gheorghe Date: Fri, 20 Oct 2023 17:29:16 +0300 Subject: [PATCH] fix --- app/Forms/Components/Link.php | 1 + 1 file changed, 1 insertion(+) 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(),