Skip to content

Commit

Permalink
fix: nullable egg features (pterodactyl#5135)
Browse files Browse the repository at this point in the history
  • Loading branch information
MinerPL authored Jul 5, 2024
1 parent 8ae76c3 commit 2dcd39c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/admin/eggs/view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<label for="pConfigFeatures" class="control-label">Features</label>
<div>
<select class="form-control" name="features[]" id="pConfigFeatures" multiple>
@foreach($egg->features as $feature)
@foreach(($egg->features ?? []) as $feature)
<option value="{{ $feature }}" selected>{{ $feature }}</option>
@endforeach
</select>
Expand Down

0 comments on commit 2dcd39c

Please sign in to comment.