diff --git a/blocks/adp-asset-details-modal/adp-asset-details-modal.js b/blocks/adp-asset-details-modal/adp-asset-details-modal.js index 5d8bacf7..be5556a5 100644 --- a/blocks/adp-asset-details-modal/adp-asset-details-modal.js +++ b/blocks/adp-asset-details-modal/adp-asset-details-modal.js @@ -136,10 +136,10 @@ export async function openAssetDetailsModal(id, resultsManager) { break; } } - emitEvent(document.body, EventNames.ASSET_DETAIL, [{ + emitEvent(document.body, EventNames.ASSET_DETAIL, { assetId, assetName: getAssetName(assetJSON), - }]); + }); } } diff --git a/blocks/adp-asset-details-panel/adp-asset-details-panel.js b/blocks/adp-asset-details-panel/adp-asset-details-panel.js index b5bdcd68..82ef210d 100644 --- a/blocks/adp-asset-details-panel/adp-asset-details-panel.js +++ b/blocks/adp-asset-details-panel/adp-asset-details-panel.js @@ -121,10 +121,10 @@ export async function openAssetDetailsPanel(assetId, resultsManagerObj) { assetDetailsPanel.parentElement.scrollTop = 0; } - emitEvent(document.documentElement, EventNames.ASSET_QUICK_PREVIEW, [{ + emitEvent(document.documentElement, EventNames.ASSET_QUICK_PREVIEW, { assetId, assetName: fileName, - }]); + }); } export default async function decorate(block) {