diy-template-components 2.0.106 → 2.0.108

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -6771,16 +6771,20 @@ function courses({
6771
6771
  const [nodeData] = sectionData?.components;
6772
6772
  const [utmParams, setUtmParams] = React.useState('');
6773
6773
  const handleApiCall = () => {
6774
+ console.log('base', baseURLs);
6774
6775
  if (baseURLs) {
6775
6776
  getCourseList(baseURLs, hashToken).then(response => {
6777
+ console.log('response', response);
6776
6778
  const placeholders = nodeData?.cardCarousel?.metadata?.placeholders;
6777
6779
  const coursesData = response?.data?.coursesData;
6778
6780
  if (coursesData && coursesData.length) {
6779
6781
  setCardList(response?.data?.coursesData);
6780
6782
  setShowShimmer(false);
6781
6783
  } else {
6784
+ console.log('edit');
6782
6785
  // For Edit Page: If no data found, show placeholders. If placeholder doesn't come from backend, show shimmer.
6783
6786
  if (isEdit) {
6787
+ console.log('edit1', placeholders);
6784
6788
  if (placeholders && placeholders.length) {
6785
6789
  setShowShimmer(false);
6786
6790
  setFallbackImages(placeholders);
@@ -6804,7 +6808,8 @@ function courses({
6804
6808
  };
6805
6809
  React.useEffect(() => {
6806
6810
  const placeholders = nodeData?.cardCarousel?.metadata?.placeholders;
6807
- console.log('placeholders', placeholders, isMasterTemplate);
6811
+ console.log('placeholders test', placeholders, isMasterTemplate);
6812
+ debugger;
6808
6813
  // For Master template Preview: Show placeholder images. If placeholder doesn't come from backend, show shimmer.
6809
6814
  if (isMasterTemplate && false) {
6810
6815
  if (placeholders && placeholders.length) {