Fix for when creating new addresses to a node

This commit is contained in:
Deon George 2023-08-02 18:31:14 +10:00
parent 929d25c737
commit 44e7ef5d90

View File

@ -176,6 +176,11 @@
@if($errors->count())
<span class="btn btn-sm btn-danger" role="alert">
There were errors with the submission.
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</span>
@endif
</span>
@ -425,7 +430,7 @@
$('#sec-level').removeClass('d-none');
$(this).parent().find('i').removeClass('spinner-grow spinner-grow-sm');
if (modify.responseJSON) {
if (modify && modify.responseJSON) {
$('#submit').val(id);
$('#action').val('update');