From a930661150b22401884f221cda35096ee89b0f74 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 31 Oct 2022 12:16:39 -0700 Subject: [PATCH] Check for valid category Signed-off-by: snipe --- resources/views/account/view-assets.blade.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/views/account/view-assets.blade.php b/resources/views/account/view-assets.blade.php index a83be17755..6081091c23 100755 --- a/resources/views/account/view-assets.blade.php +++ b/resources/views/account/view-assets.blade.php @@ -421,7 +421,11 @@ @endif - {{ $asset->model->category->name }} + + @if (($asset->model) && ($asset->model->category)) + {{ $asset->model->category->name }} + @endif + {{ $asset->asset_tag }} {{ $asset->name }}