Skip to content

Commit

Permalink
blocks/adp-asset-details-modal/adp-asset-details-modal.js : Updated e…
Browse files Browse the repository at this point in the history
…vent asset-detail removed array from eventData. (#257)

blocks/adp-asset-details-panel/adp-asset-details-panel.js" Updated event asset-quick-view removed array from  eventData.
  • Loading branch information
TyroneAEM authored Nov 29, 2023
1 parent 86b4dcb commit 2821baa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions blocks/adp-asset-details-modal/adp-asset-details-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}]);
});
}
}

Expand Down
4 changes: 2 additions & 2 deletions blocks/adp-asset-details-panel/adp-asset-details-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2821baa

Please sign in to comment.