fix: make sure umap.properties.slideshow is defined (#2583)

This commit is contained in:
Yohan Boniface 2025-03-28 15:25:19 +01:00 committed by GitHub
commit dcf5f1a763
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -5,7 +5,7 @@
"es6": true
},
"parserOptions": {
"ecmaVersion": 2020,
"ecmaVersion": 2021,
"sourceType": "module"
}
}

View file

@ -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