Pārlūkot izejas kodu

change null check style

kaoritokashiki 5 gadi atpakaļ
vecāks
revīzija
0635cea9ad
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      src/client/js/components/PageAccessoriesModal.jsx

+ 2 - 2
src/client/js/components/PageAccessoriesModal.jsx

@@ -74,10 +74,10 @@ const PageAccessoriesModal = (props) => {
     }
     }
   }
   }
 
 
-  if (menu) {
+  if (menu != null) {
     // CLICK
     // CLICK
     const menuSliderClick = document.getElementById('grw-nav-slide-hr');
     const menuSliderClick = document.getElementById('grw-nav-slide-hr');
-    if (menuSliderClick) {
+    if (menuSliderClick != null) {
       const arrayMenu = Array.from(menu);
       const arrayMenu = Array.from(menu);
 
 
       navSlider(arrayMenu, (el, width, tempMarginLeft) => {
       navSlider(arrayMenu, (el, width, tempMarginLeft) => {