Skip to content

Commit 18b208b

Browse files
committed
Account for missing location
1 parent 71d93ca commit 18b208b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/blade/input/location-select.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class="js-data-ajax"
3636
@if ($selected)
3737
@foreach(Arr::wrap($selected) as $id)
3838
<option value="{{ $id }}" selected="selected" role="option" aria-selected="true" role="option">
39-
{{ (Location::find($id))->name }}
39+
{{ optional(Location::find($id))->name }}
4040
</option>
4141
@endforeach
4242
@endif

0 commit comments

Comments
 (0)