From 4092cc6bfd7b0c41af5460de3ebd6cbdb8125fda Mon Sep 17 00:00:00 2001 From: Thomas David Baker Date: Tue, 24 Sep 2024 23:49:21 -0700 Subject: [PATCH] Components must always indicate their template otherwise they can't render --- gatherling/Views/Components/CardLink.php | 1 + 1 file changed, 1 insertion(+) diff --git a/gatherling/Views/Components/CardLink.php b/gatherling/Views/Components/CardLink.php index 9c872a0f..b092210f 100644 --- a/gatherling/Views/Components/CardLink.php +++ b/gatherling/Views/Components/CardLink.php @@ -10,6 +10,7 @@ class CardLink extends Component public string $imageSrc; public function __construct(public string $cardName) { + parent::__construct('partials/cardLink'); $gathererName = preg_replace('/ /', ']+[', $cardName); $gathererName = str_replace('/', ']+[', $gathererName); $this->gathererLink = 'https://gatherer.wizards.com/Pages/Search/Default.aspx?name=+[' . rawurlencode($gathererName) . ']';