Skip to content

Commit

Permalink
118944: Fix hasDraftVersion$ not working for embedded payloads with n…
Browse files Browse the repository at this point in the history
…o content

(cherry picked from commit 704cc06)
  • Loading branch information
alexandrevryghem committed Nov 17, 2024
1 parent 01fcbd7 commit ec6aff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/core/data/version-history-data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>) => {
Expand Down

0 comments on commit ec6aff4

Please sign in to comment.