web/elements: typing error when variables are not converted to string (#15169) fix: typing error when variables are not converted to string Co-authored-by: Leandro4002 <leandro262009@gmail.com> Co-authored-by: leandro.saraiva <leandro.saraiva@adonite.com>
This commit is contained in:
![98988430+gcp-cherry-pick-bot[bot]@users.noreply.github.com](/assets/img/avatar_default.png)
committed by
GitHub

parent
cbc14524b3
commit
f6ff31e3de
@ -32,8 +32,8 @@ import {
|
||||
} from "./types.js";
|
||||
|
||||
function localeComparator(a: DualSelectPair, b: DualSelectPair) {
|
||||
const aSortBy = a[2] || a[0];
|
||||
const bSortBy = b[2] || b[0];
|
||||
const aSortBy = String(a[2] || a[0]);
|
||||
const bSortBy = String(b[2] || b[0]);
|
||||
|
||||
return aSortBy.localeCompare(bSortBy);
|
||||
}
|
||||
|
Reference in New Issue
Block a user