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
Branches
No related tags found
No related merge requests found
......@@ -39,7 +39,9 @@ export function filterVersions(
}
// Leave only versions greater than current
let filteredVersions = releases.filter((v) =>
let filteredVersions = releases.filter(
(v) =>
versioning.isVersion(v.version) &&
versioning.isGreaterThan(v.version, currentVersion)
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment