Skip to content

Commit

Permalink
Removed: type checking for undefined param
Browse files Browse the repository at this point in the history
  • Loading branch information
ymaheshwari1 committed Feb 16, 2024
1 parent e8fea8b commit b7ce737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const sortSequence = (sequence: Array<Group | Route | Rule>, sortOnField = "sequ

// Sort undefined values at last
if(a[sortOnField] == undefined) return 1;
if(b[sortOnField] === undefined) return -1;
if(b[sortOnField] == undefined) return -1;

return a[sortOnField] - b[sortOnField]
})
Expand Down

0 comments on commit b7ce737

Please sign in to comment.