mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
Merge branch 'feature-process_polling-7.6' into feature-process_polling
This commit is contained in:
@@ -272,12 +272,13 @@ export class RemoteDataBuildService {
|
|||||||
return isStale(r2.state) ? r1 : r2;
|
return isStale(r2.state) ? r1 : r2;
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
distinctUntilKeyChanged('lastUpdated')
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const payload$ = this.buildPayload<T>(requestEntry$, href$, ...linksToFollow);
|
const payload$ = this.buildPayload<T>(requestEntry$, href$, ...linksToFollow);
|
||||||
|
|
||||||
return this.toRemoteDataObservable<T>(requestEntry$, payload$);
|
return this.toRemoteDataObservable<T>(requestEntry$, payload$).pipe(
|
||||||
|
distinctUntilKeyChanged('lastUpdated'),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -196,7 +196,7 @@ export class ProcessDataService extends IdentifiableDataService<Process> impleme
|
|||||||
|
|
||||||
return process$.pipe(
|
return process$.pipe(
|
||||||
distinctUntilChanged((previous: RemoteData<Process>, current: RemoteData<Process>) =>
|
distinctUntilChanged((previous: RemoteData<Process>, current: RemoteData<Process>) =>
|
||||||
previous.payload.processStatus === current.payload.processStatus
|
previous.payload?.processStatus === current.payload?.processStatus,
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user