fix: fix categorized layer crashing with null value (#2621)

Do not call toString on a null value
This commit is contained in:
Yohan Boniface 2025-04-08 15:31:51 +02:00 committed by GitHub
commit 3c70fc4267
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -283,6 +283,8 @@ export function greedyTemplate(str, data, ignore) {
} }
export function naturalSort(a, b, lang) { export function naturalSort(a, b, lang) {
a ??= ''
b ??= ''
return a return a
.toString() .toString()
.toLowerCase() .toLowerCase()