diff --git a/src/components/PostmanLink.js b/src/components/PostmanLink.js index f7c54783b6f..10bfd6a2c75 100644 --- a/src/components/PostmanLink.js +++ b/src/components/PostmanLink.js @@ -9,10 +9,7 @@ export default function CMSLinkComponent({children, source}) { useEffect(() => { const fetchFileContent = async () => { try { - console.log(siteConfig); - console.log(siteConfig.customFields); - console.log(siteConfig.customFields.CMS_APP_API_ENDPOINT); - const response = await getItem(siteConfig.customFields.CMS_APP_API_ENDPOINT); + const response = await getItem(siteConfig.customFields.CMS_APP_API_ENDPOINT, source); //const response = await getItem('https://lyna7x4y34.execute-api.us-east-1.amazonaws.com/Prod/', source); if (response.id) { const content = response.Item diff --git a/src/services/CMSService.js b/src/services/CMSService.js index 3fa7ab77f44..6c5beaeb331 100644 --- a/src/services/CMSService.js +++ b/src/services/CMSService.js @@ -11,7 +11,6 @@ export async function getBanner(cmsurl) { export async function getItem(cmsurl, itemId) { try { - console.log(cmsurl + itemId); const response = await fetch(cmsurl + itemId); return await response.json(); } catch (error) {