From baacffe2802cdd362b7455d6c5ba06368666fd85 Mon Sep 17 00:00:00 2001 From: Pilar Candia Date: Mon, 17 Jun 2024 16:07:43 -0400 Subject: [PATCH] MSPB-370: Remove blank space from address in the E911 Form (#1216) --- src/apps/common/submodules/e911/e911.js | 5 +++++ src/apps/common/submodules/e911/views/dialog.html | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/apps/common/submodules/e911/e911.js b/src/apps/common/submodules/e911/e911.js index 04e028522..470d7b284 100644 --- a/src/apps/common/submodules/e911/e911.js +++ b/src/apps/common/submodules/e911/e911.js @@ -227,6 +227,11 @@ define(function(require) { }, e911Format: function(data) { + if (_.isUndefined(data)) { + return; + } + + data.full_street_address = _.get(data, 'legacy_data.house_number') + ' ' + _.get(data, 'street_address'); return _.merge({}, data, { notification_contact_emails: _ .chain(data) diff --git a/src/apps/common/submodules/e911/views/dialog.html b/src/apps/common/submodules/e911/views/dialog.html index 7a5d50148..29bab548b 100644 --- a/src/apps/common/submodules/e911/views/dialog.html +++ b/src/apps/common/submodules/e911/views/dialog.html @@ -18,7 +18,7 @@
- +