fix: cast value to string before calling trim

fix #2566
This commit is contained in:
Yohan Boniface 2025-03-11 21:43:21 +01:00
parent d85fc648b1
commit 90be14ae89

View file

@ -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()
}