From 9f75c3986fe13f88927ccffc5cfe4f7c0b0095f2 Mon Sep 17 00:00:00 2001 From: Andrea Barbasso <´andrea.barbasso@4science.com´> Date: Fri, 12 Apr 2024 16:52:36 +0200 Subject: [PATCH] [DURACOM-248] add elvis operator to getRemoteDataPayload --- src/app/core/shared/operators.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/core/shared/operators.ts b/src/app/core/shared/operators.ts index c98b60b649..ddc21740ad 100644 --- a/src/app/core/shared/operators.ts +++ b/src/app/core/shared/operators.ts @@ -48,7 +48,7 @@ export const DEBOUNCE_TIME_OPERATOR = new InjectionToken<(dueTime: number) => export const getRemoteDataPayload = () => (source: Observable>): Observable => - source.pipe(map((remoteData: RemoteData) => remoteData.payload)); + source.pipe(map((remoteData: RemoteData) => remoteData?.payload)); export const getPaginatedListPayload = () => (source: Observable>): Observable =>