From e4d8cc0662c5a44618a1d3fc2987f6b1473586b7 Mon Sep 17 00:00:00 2001 From: RitwikSrivastava <45959816+RitwikSrivastava@users.noreply.github.com> Date: Thu, 27 Jun 2024 11:23:53 +0530 Subject: [PATCH 1/3] Update floatingagent.js --- blocks/floatingagent/floatingagent.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blocks/floatingagent/floatingagent.js b/blocks/floatingagent/floatingagent.js index b2c39bdf..9b0513e2 100644 --- a/blocks/floatingagent/floatingagent.js +++ b/blocks/floatingagent/floatingagent.js @@ -13,9 +13,9 @@ import { decorateFormLinks } from '../../scripts/scripts.js'; export default function decorate(block) { const agentName = getMetadata('name'); - const agentDesc = getMetadata('desc'); - const pic = getMetadata('pic'); - const lic = getMetadata('lic'); + const agentDesc = getMetadata('description'); + const pic = getMetadata('photo'); + const lic = getMetadata('license-number'); const agentPicture = document.createElement('picture'); agentPicture.appendChild(img({ From 5a7704533b413e70a4ed8364050d26c8c9afe610 Mon Sep 17 00:00:00 2001 From: RitwikSrivastava <45959816+RitwikSrivastava@users.noreply.github.com> Date: Thu, 27 Jun 2024 11:24:22 +0530 Subject: [PATCH 2/3] Update agent-property.js --- blocks/agent-property/agent-property.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/agent-property/agent-property.js b/blocks/agent-property/agent-property.js index 2b60823b..acef071c 100644 --- a/blocks/agent-property/agent-property.js +++ b/blocks/agent-property/agent-property.js @@ -9,7 +9,7 @@ const cardView = button({ class: 'card-view' }, 'Grid View'); const mapView = button({ class: 'map-view' }, 'Map View'); const viewToggle = div({ class: 'view-toggle' }); const map = div({ class: 'gmap-canvas' }); -const agentId = getMetadata('agent-id'); +const agentId = getMetadata('id'); let centerlat; let centerlong; let data; From fb722d7f057adad0b63b89eee26795e2e8a04f6a Mon Sep 17 00:00:00 2001 From: RitwikSrivastava <45959816+RitwikSrivastava@users.noreply.github.com> Date: Thu, 27 Jun 2024 11:29:46 +0530 Subject: [PATCH 3/3] Update agent-transactions.js --- blocks/agent-transactions/agent-transactions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/agent-transactions/agent-transactions.js b/blocks/agent-transactions/agent-transactions.js index d7e13c00..dea0f63b 100644 --- a/blocks/agent-transactions/agent-transactions.js +++ b/blocks/agent-transactions/agent-transactions.js @@ -4,7 +4,7 @@ import { import { getMetadata } from '../../scripts/aem.js'; const getClosedTransactions = async () => { - const agentId = getMetadata('agent-id'); + const agentId = getMetadata('id'); const formattedData = []; try {