From 360ca100ba76c3de706507a1d8075e32a5cc4e6d Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 18 Mar 2025 07:35:10 +0100 Subject: [PATCH 1/2] 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 From e993aa7dbc7156ddb2d8d4aeb92c5c36c4b2415e Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Wed, 26 Mar 2025 11:30:08 +0100 Subject: [PATCH 2/2] chore: bump eslint ecmaVersion from 2020 to 2021 --- .eslintrc.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 6aef9e75..ca6715f2 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -5,7 +5,7 @@ "es6": true }, "parserOptions": { - "ecmaVersion": 2020, + "ecmaVersion": 2021, "sourceType": "module" } }