fix: cast value to string before calling trim (#2567)

fix #2566
This commit is contained in:
Yohan Boniface 2025-03-12 17:36:42 +01:00 committed by GitHub
commit e53d208d7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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