@innovastudio/contentbox 1.4.5 → 1.4.6

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbox",
3
3
  "type": "module",
4
- "version": "1.4.5",
4
+ "version": "1.4.6",
5
5
  "description": "",
6
6
  "main": "public/contentbox/contentbox.esm.js",
7
7
  "files": [
@@ -1604,8 +1604,10 @@ class SideBar {
1604
1604
 
1605
1605
  const showDesigns = (catId) => {
1606
1606
 
1607
- const wait = document.querySelector('.is-waiting');
1608
- wait.style.display = 'none';
1607
+ if(template_list.length>0) {
1608
+ const wait = document.querySelector('.is-waiting');
1609
+ wait.style.display = 'none';
1610
+ }
1609
1611
 
1610
1612
  const designList = document.querySelector('.is-design-list');
1611
1613
  designList.style.opacity = 0;
@@ -1709,9 +1711,11 @@ class SideBar {
1709
1711
  }
1710
1712
 
1711
1713
  const renderMegaMenu = () => {
1712
-
1713
- const wait2 = document.querySelector('.is-waiting2');
1714
- wait2.style.display = 'none';
1714
+
1715
+ if(template_list.length>0) {
1716
+ const wait2 = document.querySelector('.is-waiting2');
1717
+ wait2.style.display = 'none';
1718
+ }
1715
1719
 
1716
1720
  const menu = document.querySelector('.mega-menu');
1717
1721
  const menuContent = document.querySelector('.mega-menu-content');