fix: fix categorized layer crashing with null value

Do not call toString on a null value
This commit is contained in:
Yohan Boniface 2025-04-08 15:21:27 +02:00
parent aa43d4efa8
commit 5b5102f909

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