Skip to content

Commit

Permalink
Merge pull request #1283 from akto-api-security/fix/sorting_on_name
Browse files Browse the repository at this point in the history
fixing null check
  • Loading branch information
avneesh-akto authored Jul 15, 2024
2 parents 69cce2e + 533dac5 commit 16654eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/dashboard/web/polaris_web/web/src/util/func.js
Original file line number Diff line number Diff line change
Expand Up @@ -550,13 +550,13 @@ sortFunc: (data, sortKey, sortOrder) => {
let nameA = ""
if(a?.displayName?.length > 0){
nameA = a?.displayName.toLowerCase() ;
}else if(a?.name.length > 0){
}else if(a?.name?.length > 0){
nameA = a?.name.toLowerCase();
}
let nameB = ""
if(b?.displayName?.length > 0){
nameB = b?.displayName.toLowerCase() ;
}else if(b?.name.length > 0){
}else if(b?.name?.length > 0){
nameB = b?.name.toLowerCase();
}

Expand Down

0 comments on commit 16654eb

Please sign in to comment.