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.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);
|