[CST-4499] Version history - SSR bug fixed

This commit is contained in:
Davide Negretti
2021-10-04 13:29:55 +02:00
parent e111f7c70b
commit b7d6c8e557
2 changed files with 1 additions and 3 deletions

View File

@@ -62,7 +62,6 @@ export class DsoPageVersionButtonComponent implements OnInit {
ngOnInit() {
this.isAuthorized$ = this.authorizationService.isAuthorized(FeatureID.CanCreateVersion, this.dso.self);
console.log('href = ' + this.dso._links.version.href);
this.disableNewVersionButton$ = this.versionHistoryService.hasDraftVersion$(this.dso._links.version.href).pipe(
// button is disabled if hasDraftVersion = true, and enabled if hasDraftVersion = false or null

View File

@@ -405,8 +405,7 @@ export class ItemVersionsComponent implements OnInit {
);
const versionHistory$ = this.versionHistoryRD$.pipe(
getAllSucceededRemoteData(),
getRemoteDataPayload(),
getFirstSucceededRemoteDataPayload(),
hasValueOperator(),
);
this.getAllVersions(versionHistory$);