From c5e2aed164443d943bec517069e438eb552fa4d9 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 12 Dec 2024 17:37:08 +0000 Subject: [PATCH] Check for assigned (not assigned_to) before trying to present() the name on bulk delete assets Signed-off-by: snipe --- resources/views/hardware/bulk-delete.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/hardware/bulk-delete.blade.php b/resources/views/hardware/bulk-delete.blade.php index 37977ca1e2..96c931ae2b 100644 --- a/resources/views/hardware/bulk-delete.blade.php +++ b/resources/views/hardware/bulk-delete.blade.php @@ -49,7 +49,7 @@ @endif - @if ($asset->assigned_to) + @if ($asset->assigned) {{ $asset->assigned->present()->name() }} @endif