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.es.js CHANGED
@@ -6755,16 +6755,20 @@ function courses({
6755
6755
  const [nodeData] = sectionData?.components;
6756
6756
  const [utmParams, setUtmParams] = useState('');
6757
6757
  const handleApiCall = () => {
6758
+ console.log('base', baseURLs);
6758
6759
  if (baseURLs) {
6759
6760
  getCourseList(baseURLs, hashToken).then(response => {
6761
+ console.log('response', response);
6760
6762
  const placeholders = nodeData?.cardCarousel?.metadata?.placeholders;
6761
6763
  const coursesData = response?.data?.coursesData;
6762
6764
  if (coursesData && coursesData.length) {
6763
6765
  setCardList(response?.data?.coursesData);
6764
6766
  setShowShimmer(false);
6765
6767
  } else {
6768
+ console.log('edit');
6766
6769
  // For Edit Page: If no data found, show placeholders. If placeholder doesn't come from backend, show shimmer.
6767
6770
  if (isEdit) {
6771
+ console.log('edit1', placeholders);
6768
6772
  if (placeholders && placeholders.length) {
6769
6773
  setShowShimmer(false);
6770
6774
  setFallbackImages(placeholders);
@@ -6788,7 +6792,8 @@ function courses({
6788
6792
  };
6789
6793
  useEffect(() => {
6790
6794
  const placeholders = nodeData?.cardCarousel?.metadata?.placeholders;
6791
- console.log('placeholders', placeholders, isMasterTemplate);
6795
+ console.log('placeholders test', placeholders, isMasterTemplate);
6796
+ debugger;
6792
6797
  // For Master template Preview: Show placeholder images. If placeholder doesn't come from backend, show shimmer.
6793
6798
  if (isMasterTemplate && false) {
6794
6799
  if (placeholders && placeholders.length) {