Skip to content

Commit

Permalink
Merge pull request #256 from hlxsites/fixgetMetadataID
Browse files Browse the repository at this point in the history
Fix get metadata keys
  • Loading branch information
RitwikSrivastava authored Jun 27, 2024
2 parents c41e0e8 + fb722d7 commit 0463480
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion blocks/agent-property/agent-property.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion blocks/agent-transactions/agent-transactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions blocks/floatingagent/floatingagent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 0463480

Please sign in to comment.