From b0867d5a814caf3d88984a82023961f75b33e45a Mon Sep 17 00:00:00 2001 From: R-Sourabh Date: Wed, 6 Nov 2024 12:45:38 +0530 Subject: [PATCH] Improved: remove unnecessary template literals(#320) --- src/components/FacilityGeoPointModal.vue | 4 ++-- src/components/GeoPointPopover.vue | 4 ++-- src/views/AddFacilityAddress.vue | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/FacilityGeoPointModal.vue b/src/components/FacilityGeoPointModal.vue index 74978cc..da8c79d 100644 --- a/src/components/FacilityGeoPointModal.vue +++ b/src/components/FacilityGeoPointModal.vue @@ -101,11 +101,11 @@ export default defineComponent({ async generateLatLong() { this.isGeneratingLatLong = true const postalCode = this.geoPoint.postalCode; - const query = postalCode.startsWith('0') ? `${postalCode} OR ${postalCode.substring(1)}` : `${postalCode}`; + const query = postalCode.startsWith('0') ? postalCode + ' OR ' + postalCode.substring(1) : postalCode; const payload = { json: { params: { - q: `postcode: ${query}` + q: 'postcode: ' + query } } } diff --git a/src/components/GeoPointPopover.vue b/src/components/GeoPointPopover.vue index 2a938e4..8bee828 100644 --- a/src/components/GeoPointPopover.vue +++ b/src/components/GeoPointPopover.vue @@ -49,12 +49,12 @@ export default defineComponent({ try { const postalCode = this.postalAddress.postalCode; - const query = postalCode.startsWith('0') ? `${postalCode} OR ${postalCode.substring(1)}` : postalCode; + const query = postalCode.startsWith('0') ? postalCode + ' OR ' + postalCode.substring(1) : postalCode; resp = await UtilService.generateLatLong({ json: { params: { - q: `postcode: ${query}` + q: 'postcode: ' + query } } }) diff --git a/src/views/AddFacilityAddress.vue b/src/views/AddFacilityAddress.vue index cba4cf3..b376bfd 100644 --- a/src/views/AddFacilityAddress.vue +++ b/src/views/AddFacilityAddress.vue @@ -201,12 +201,12 @@ export default defineComponent({ }, async generateLatLong() { const postalCode = this.formData.postalCode; - const query = postalCode.startsWith('0') ? `${postalCode} OR ${postalCode.substring(1)}` : `${postalCode}`; + const query = postalCode.startsWith('0') ? postalCode + ' OR ' + postalCode.substring(1) : postalCode; const payload = { json: { params: { - q: `postcode: ${query}` + q: 'postcode: ' + query } } }