diy-template-components 2.0.107 → 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 +4 -0
- package/build/index.es.js.map +1 -1
- package/build/index.js +4 -0
- package/build/index.js.map +1 -1
- package/package.json +1 -1
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);
|