Valentin 10 місяців тому
батько
коміт
01f797f369
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      user/themes/carnet-atterrissage/js/layout.js

+ 1 - 1
user/themes/carnet-atterrissage/js/layout.js

@@ -144,7 +144,7 @@ class setMarginTexts extends Paged.Handler {
                 h3.nextSibling.style.position = "absolute";
                 h3.nextSibling.style.top = "5%";
             }
-            if (h3.closest('.pagedjs_page').nextElementSibling.querySelector('.has-children ')?.firstChild.firstChild.firstChild.tagName == "IMG") {
+            if (h3.closest('.pagedjs_page').nextElementSibling?.querySelector('.has-children ')?.firstChild.firstChild.firstChild.tagName == "IMG") {
                 let coverImg = h3.closest('.pagedjs_page').nextElementSibling.querySelector('.has-children ').firstChild.childNodes[0];
                 coverImg.style.position = "absolute";
                 coverImg.style.top = "-22mm";