diff --git a/ui/src/App.js b/ui/src/App.js index 0edaae57..6134dd66 100644 --- a/ui/src/App.js +++ b/ui/src/App.js @@ -139,7 +139,7 @@ const sortVersions = filters => { return 1; } let i = 0; - while (partsA[i] === partsB[i]) { // Skip all the parts that are equal. + while ((partsA[i] === partsB[i]) && (i <= partsA.length)) { // Skip all the parts that are equal. i++ } if (!partsA[i] || !partsB[i]) {