From e3dc1f37572d3113e0630d659830dab4a8d48c9e Mon Sep 17 00:00:00 2001 From: Vaibhav sasulkar Date: Tue, 1 Oct 2024 14:08:01 +0530 Subject: [PATCH] responce data parse commneted --- blocks/branchlocator/branchlocator.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blocks/branchlocator/branchlocator.js b/blocks/branchlocator/branchlocator.js index a238550ba8..fedb9690e6 100644 --- a/blocks/branchlocator/branchlocator.js +++ b/blocks/branchlocator/branchlocator.js @@ -114,7 +114,8 @@ export default async function decorate(block) { let url = linkURL.textContent.trim(); let urlRepoonse = await CFApiCall(url); - const jsonResponseData = JSON.parse(urlRepoonse?.data[0]?.branchlocatorobj); + // const jsonResponseData = JSON.parse(urlRepoonse?.data[0]?.branchlocatorobj); + const jsonResponseData = urlRepoonse?.data; if(sessionStorage.getItem('data')){ setLocationObj.getExcelData = JSON.parse(sessionStorage.getItem('data'));