Fix for creating a new area 'Attempt to ready property nodelist on null'

This commit is contained in:
Deon George 2023-12-14 22:48:27 +11:00
parent 27c050dc38
commit 6d9179ed37

View File

@ -96,7 +96,7 @@
<label for="nodelist" class="form-label">Nodelist File Name</label>
<div class="input-group has-validation">
<span class="input-group-text"><i class="bi bi-file-earmark-break-fill"></i></span>
<input type="text" class="form-control @error('nodelist') is-invalid @enderror" id="nodelist" placeholder="NODELIST.Z??" name="nodelist" value="{{ old('nodelist',$o->domain->nodelist) }}" @cannot('admin',$o->domain)disabled @endcannot>
<input type="text" class="form-control @error('nodelist') is-invalid @enderror" id="nodelist" placeholder="NODELIST.Z??" name="nodelist" value="{{ old('nodelist',$o->domain?->nodelist) }}" @cannot('admin',$o->domain)disabled @endcannot>
<span class="invalid-feedback" role="alert">
@error('nodelist')
{{ $message }}