diff --git a/resources/views/system/form-address.blade.php b/resources/views/system/form-address.blade.php index e75f346..1d7ef02 100644 --- a/resources/views/system/form-address.blade.php +++ b/resources/views/system/form-address.blade.php @@ -176,6 +176,11 @@ @if($errors->count()) There were errors with the submission. + @endif @@ -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');