Skip to content

Commit 86d3883

Browse files
Merge branch 'feature-process_polling-7.6' into feature-process_polling
2 parents d37cd18 + c91b99f commit 86d3883

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/app/core/cache/builders/remote-data-build.service.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,12 +272,13 @@ export class RemoteDataBuildService {
272272
return isStale(r2.state) ? r1 : r2;
273273
}
274274
}),
275-
distinctUntilKeyChanged('lastUpdated')
276275
);
277276

278277
const payload$ = this.buildPayload<T>(requestEntry$, href$, ...linksToFollow);
279278

280-
return this.toRemoteDataObservable<T>(requestEntry$, payload$);
279+
return this.toRemoteDataObservable<T>(requestEntry$, payload$).pipe(
280+
distinctUntilKeyChanged('lastUpdated'),
281+
);
281282
}
282283

283284
/**

src/app/core/data/processes/process-data.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export class ProcessDataService extends IdentifiableDataService<Process> impleme
196196

197197
return process$.pipe(
198198
distinctUntilChanged((previous: RemoteData<Process>, current: RemoteData<Process>) =>
199-
previous.payload.processStatus === current.payload.processStatus
199+
previous.payload?.processStatus === current.payload?.processStatus,
200200
)
201201
);
202202
}

0 commit comments

Comments
 (0)