TSK-1560: TSK-1558: Fix error when displaying distribution targets

This commit is contained in:
Sofie Hofmann 2021-02-15 16:03:05 +01:00
parent 2a93e44fcb
commit f45515d967
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}