Minor fixes
This commit is contained in:
parent
5a0c433034
commit
052430d97c
|
@ -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)));
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue