Skip to content

Commit ec6aff4

Browse files
118944: Fix hasDraftVersion$ not working for embedded payloads with no content
(cherry picked from commit 704cc06)
1 parent 01fcbd7 commit ec6aff4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/core/data/version-history-data.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export class VersionHistoryDataService extends IdentifiableDataService<VersionHi
190190
return this.versionDataService.findByHref(versionHref, false, true, followLink('versionhistory')).pipe(
191191
getFirstCompletedRemoteData(),
192192
switchMap((versionRD: RemoteData<Version>) => {
193-
if (versionRD.hasSucceeded && !versionRD.hasNoContent) {
193+
if (versionRD.hasSucceeded && !versionRD.hasNoContent && hasValue(versionRD.payload)) {
194194
return versionRD.payload.versionhistory.pipe(
195195
getFirstCompletedRemoteData(),
196196
map((versionHistoryRD: RemoteData<VersionHistory>) => {

0 commit comments

Comments
 (0)