Minor fixes

This commit is contained in:
George Kalampokis 2020-07-09 15:02:16 +03:00
parent 5a0c433034
commit 052430d97c
2 changed files with 2 additions and 2 deletions

View File

@ -316,7 +316,7 @@ public class DataManagementPlanManager {
authItems = items;
}
CompletableFuture<List<VersionListingModel>> versionFuture = authItems.withHint(HintedModelFactory.getHint(VersionListingModel.class))
.orderBy(((builder, root) -> builder.asc(root.get("version"))))
.orderBy(((builder, root) -> builder.desc(root.get("version"))))
.selectAsync(item -> new VersionListingModel().fromDataModel(item))
.whenComplete(((versionListingModels, throwable) -> versions.addAll(versionListingModels)));

View File

@ -379,7 +379,7 @@ export class DmpOverviewComponent extends BaseComponent implements OnInit {
}
getAllVersions(dmp: DmpOverviewModel) {
this.dmpService.getAllVersions(dmp.id)
this.dmpService.getAllVersions(dmp.groupId)
.pipe(takeUntil(this._destroyed))
.subscribe(items => {
this.versions = items;