Commit 71358f50 authored by Romain Bioteau's avatar Romain Bioteau
Browse files

fix(deploy) select latest

parent f73c0056
......@@ -575,6 +575,7 @@ public class SelectArtifactToDeployPage implements ControlSupplier {
repositoryModel.getArtifacts().stream()
.filter(artifact -> !OrganizationArtifact.class.isInstance(artifact))
.filter(artifact -> VersionedArtifact.class.isInstance(artifact) ? ((VersionedArtifact) artifact).hasSingleVersion() : true)
.filter(artifact -> ArtifactVersion.class.isInstance(artifact) ?!((ArtifactVersion) artifact).getParent().hasSingleVersion() : true)
.filter(artifact -> ArtifactVersion.class.isInstance(artifact) ?((ArtifactVersion) artifact).isLatest() : true)
.forEach(checkedElementsObservable::add);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment