From 44e7ef5d90739e3dfe54f77d24e3dba4e4dc9f63 Mon Sep 17 00:00:00 2001 From: Deon George Date: Wed, 2 Aug 2023 18:31:14 +1000 Subject: [PATCH] Fix for when creating new addresses to a node --- resources/views/system/form-address.blade.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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');