From 4e06b597fee727b1d71104ee82d12d7b4faeeecc Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Tue, 10 Jun 2025 10:43:02 -0700 Subject: [PATCH] Handle category missing in Consumable --- app/Models/Consumable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Consumable.php b/app/Models/Consumable.php index c83aa6106e..b881ec65f3 100644 --- a/app/Models/Consumable.php +++ b/app/Models/Consumable.php @@ -284,7 +284,7 @@ class Consumable extends SnipeModel */ public function checkin_email() { - return $this->category->checkin_email; + return $this->category?->checkin_email; } /**