diff --git a/app/View/Components/searchContentType.php b/app/View/Components/searchContentType.php index 527fa32b..95c80f44 100644 --- a/app/View/Components/searchContentType.php +++ b/app/View/Components/searchContentType.php @@ -17,7 +17,7 @@ class searchContentType extends Component public function __construct( string $type) { $this->type = $type; - $this->displayName = SearchContentTypes::find($type)['display_name'] ?? 'No type found'; + $this->displayName = SearchContentTypes::find($this->type)['display_name'] ?? 'No type found'; } /**