Skip to content
Snippets Groups Projects
Commit d51b3aa4 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: validate version before calling isGreaterThan

Closes #9602
parent 4280b8e0
No related branches found
No related tags found
No related merge requests found
......@@ -39,8 +39,10 @@ export function filterVersions(
}
// Leave only versions greater than current
let filteredVersions = releases.filter((v) =>
versioning.isGreaterThan(v.version, currentVersion)
let filteredVersions = releases.filter(
(v) =>
versioning.isVersion(v.version) &&
versioning.isGreaterThan(v.version, currentVersion)
);
// Don't upgrade from non-deprecated to deprecated
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment