Skip to content

Commit

Permalink
Check for assigned (not assigned_to) before trying to present() the n…
Browse files Browse the repository at this point in the history
…ame on bulk delete assets

Signed-off-by: snipe <snipe@snipe.net>
  • Loading branch information
snipe committed Dec 12, 2024
1 parent 4d1d2fe commit c5e2aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/hardware/bulk-delete.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
@endif
</td>
<td>
@if ($asset->assigned_to)
@if ($asset->assigned)
{{ $asset->assigned->present()->name() }}
@endif
</td>
Expand Down

0 comments on commit c5e2aed

Please sign in to comment.