Skip to content

Commit

Permalink
Merge pull request hlxsites#1199 from hlxsites/1198-RFQ-Image-Fix
Browse files Browse the repository at this point in the history
fix: [Bug] images reference not sent in the RFQ API call
  • Loading branch information
rgravitvl authored Jul 10, 2024
2 parents 6c825ba + 20aeb5e commit b679171
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/quote-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ export function addRequestforQuote(dialogElement, gotoQuoteCart = false) {
return false;
}
quoteText.classList.remove('border-red-500');
const image = document.getElementsByClassName('imageviewer')?.item(0)?.getElementsByTagName('img')?.item(0)
?.getAttribute('src') ? `${window.location.origin}${document.getElementsByClassName('imageviewer')?.item(0)?.getElementsByTagName('img')?.item(0)}`
?.getAttribute('src') : undefined;
const image = document.getElementsByClassName('image-content')?.item(0)?.getElementsByTagName('img')?.item(0)
?.getAttribute('src');
const opco = getMetadata('brand');
const referrerTitle = dialogElement.getAttribute('data-referrer-title');
const country = dialogElement.getAttribute('country');
Expand Down

0 comments on commit b679171

Please sign in to comment.