diff --git a/umap/static/umap/js/umap.core.js b/umap/static/umap/js/umap.core.js index 48c81524..5c42cde8 100644 --- a/umap/static/umap/js/umap.core.js +++ b/umap/static/umap/js/umap.core.js @@ -143,7 +143,7 @@ L.DomUtil.createButtonIcon = (parent, className, title, callback, size = 16) => L.DomUtil.createTitle = (parent, text, iconClassName, className = '', tag = 'h3') => { const title = L.DomUtil.create(tag, '', parent) - if (className) L.DomUtil.createIcon(title, iconClassName) + if (iconClassName) L.DomUtil.createIcon(title, iconClassName) L.DomUtil.add('span', className, title, text) return title }