mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 11:32:38 +02:00
fix: fix categorized layer crashing with null value
Do not call toString on a null value
This commit is contained in:
parent
aa43d4efa8
commit
5b5102f909
1 changed files with 2 additions and 0 deletions
|
@ -283,6 +283,8 @@ export function greedyTemplate(str, data, ignore) {
|
|||
}
|
||||
|
||||
export function naturalSort(a, b, lang) {
|
||||
a ??= ''
|
||||
b ??= ''
|
||||
return a
|
||||
.toString()
|
||||
.toLowerCase()
|
||||
|
|
Loading…
Reference in a new issue