Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix get metadata keys #256

Merged
merged 3 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading