diff --git a/umap/static/umap/js/modules/utils.js b/umap/static/umap/js/modules/utils.js index 625674da..d80df511 100644 --- a/umap/static/umap/js/modules/utils.js +++ b/umap/static/umap/js/modules/utils.js @@ -283,6 +283,8 @@ export function greedyTemplate(str, data, ignore) { } export function naturalSort(a, b, lang) { + a ??= '' + b ??= '' return a .toString() .toLowerCase()