mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
118944: Fix hasDraftVersion$ not working for embedded payloads with no content
(cherry picked from commit 704cc06f16
)
This commit is contained in:
@@ -190,7 +190,7 @@ export class VersionHistoryDataService extends IdentifiableDataService<VersionHi
|
||||
return this.versionDataService.findByHref(versionHref, false, true, followLink('versionhistory')).pipe(
|
||||
getFirstCompletedRemoteData(),
|
||||
switchMap((versionRD: RemoteData<Version>) => {
|
||||
if (versionRD.hasSucceeded && !versionRD.hasNoContent) {
|
||||
if (versionRD.hasSucceeded && !versionRD.hasNoContent && hasValue(versionRD.payload)) {
|
||||
return versionRD.payload.versionhistory.pipe(
|
||||
getFirstCompletedRemoteData(),
|
||||
map((versionHistoryRD: RemoteData<VersionHistory>) => {
|
||||
|
Reference in New Issue
Block a user