From 90be14ae89ea4bf69384a467f2d67622b1e8e864 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 11 Mar 2025 21:43:21 +0100 Subject: [PATCH] fix: cast value to string before calling trim fix #2566 --- umap/static/umap/js/modules/data/features.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/modules/data/features.js b/umap/static/umap/js/modules/data/features.js index 7f5f6ffa..ee168ece 100644 --- a/umap/static/umap/js/modules/data/features.js +++ b/umap/static/umap/js/modules/data/features.js @@ -329,7 +329,7 @@ class Feature { } for (const key of keys) { const value = this.properties[key] - if (value) return value.trim() + if (value) return String(value).trim() } return this.datalayer.getName().trim() }