Skip to content

A free open source IT asset/license management system

Account for missing location

Marcus Moore18b208bba24d
diff --git a/resources/views/blade/input/location-select.blade.php b/resources/views/blade/input/location-select.blade.php
index 3b513b95d4..c3c1e50b99 100644
--- a/resources/views/blade/input/location-select.blade.php
+++ b/resources/views/blade/input/location-select.blade.php
@@ -36,7 +36,7 @@
@if ($selected)
@foreach(Arr::wrap($selected) as $id)
<option value="{{ $id }}" selected="selected" role="option" aria-selected="true" role="option">
- {{ (Location::find($id))->name }}
+ {{ optional(Location::find($id))->name }}
</option>
@endforeach
@endif