From e0da3163ec161ef308f037fb006608fbaad49260 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 18 Oct 2024 12:08:28 +0200 Subject: [PATCH] fix: fix dispeared icons from panel titles --- umap/static/umap/js/umap.core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/umap.core.js b/umap/static/umap/js/umap.core.js index 48c81524b..5c42cde83 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 }