Skip to content

Commit c6774f5

Browse files
committed
Auto merge of #3296 - plaets:issue-3295, r=Turbo87
DownloadGraph: Ignore SemVer parsing issues when sorting Fixes #3295
2 parents 5f0e848 + 2977f24 commit c6774f5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

app/components/download-graph.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,14 @@ export default class DownloadGraph extends Component {
106106
}
107107
});
108108

109-
let versionsList = semverSort([...versions]);
109+
let versionsList = [...versions];
110+
try {
111+
semverSort(versionsList);
112+
} catch {
113+
// Catches exceptions thrown when a version number is invalid
114+
// see issue #3295
115+
}
116+
110117
if (extra.length !== 0) {
111118
versionsList.unshift('Other');
112119
}

0 commit comments

Comments
 (0)