From 360ca100ba76c3de706507a1d8075e32a5cc4e6d Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 18 Mar 2025 07:35:10 +0100 Subject: [PATCH] fix: make sure umap.properties.slideshow is defined --- umap/static/umap/js/modules/slideshow.js | 1 + 1 file changed, 1 insertion(+) diff --git a/umap/static/umap/js/modules/slideshow.js b/umap/static/umap/js/modules/slideshow.js index 496d3537..c00b60a7 100644 --- a/umap/static/umap/js/modules/slideshow.js +++ b/umap/static/umap/js/modules/slideshow.js @@ -18,6 +18,7 @@ export default class Slideshow extends WithTemplate { this._umap = umap this._id = null this.CLASSNAME = 'umap-slideshow-active' + this._umap.properties.slideshow ??= {} this.load() this._current = null