diff --git a/umap/static/umap/js/umap.core.js b/umap/static/umap/js/umap.core.js index e3ce8f02..9dd50fa9 100644 --- a/umap/static/umap/js/umap.core.js +++ b/umap/static/umap/js/umap.core.js @@ -176,6 +176,8 @@ L.Util.greedyTemplate = (str, data, ignore) => { return value } + if (typeof str !== 'string') return '' + return str.replace( /\{ *([^\{\}/\-]+)(?:\|("[^"]*"))? *\}/g, (str, key, staticFallback) => {