TSK-1560: TSK-1558: Fix error when displaying distribution targets
This commit is contained in:
parent
2a93e44fcb
commit
f45515d967
|
@ -11,8 +11,8 @@ export class OrderBy implements PipeTransform {
|
|||
direction = -1;
|
||||
sortKey = sortKey.substr(1);
|
||||
}
|
||||
const objectA = a[sortKey].toLowerCase();
|
||||
const objectB = b[sortKey].toLowerCase();
|
||||
const objectA = a[sortKey] ? a[sortKey].toLowerCase() : '';
|
||||
const objectB = b[sortKey] ? b[sortKey].toLowerCase() : '';
|
||||
if (objectA < objectB) {
|
||||
return -1 * direction;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue