Skip to content

Commit

Permalink
fixed source passing
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-ellis-sp committed Dec 4, 2024
1 parent cd1ca40 commit ebcc710
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions src/components/PostmanLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/services/CMSService.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ebcc710

Please sign in to comment.