More refactoring components (minus Site)

This commit is contained in:
2025-09-02 09:59:02 +02:00
parent 77d42a2c27
commit 53c3f6c6b2
5 changed files with 19 additions and 104 deletions

View File

@@ -56,7 +56,7 @@ export class NotConserved {
* @param {Function} gallery
*/
setImages(imageContainer, gallery) {
if (this._data.images.length) {
if (this._data.images?.length) {
imageContainer.innerHTML = Utils.renderImages('not-conserved-gallery', this._data.images);
gallery('not-conserved-gallery', this._data.images);
} else