mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
remove all instances of first as it can cause an error if it's never triggered
This commit is contained in:
@@ -277,7 +277,7 @@ export class AuthService {
|
||||
public isTokenExpiring(): Observable<boolean> {
|
||||
return this.store.pipe(
|
||||
select(isTokenRefreshing),
|
||||
first(),
|
||||
take(1),
|
||||
map((isRefreshing: boolean) => {
|
||||
if (this.isTokenExpired() || isRefreshing) {
|
||||
return false;
|
||||
@@ -360,7 +360,7 @@ export class AuthService {
|
||||
*/
|
||||
public redirectToPreviousUrl() {
|
||||
this.getRedirectUrl().pipe(
|
||||
first())
|
||||
take(1))
|
||||
.subscribe((redirectUrl) => {
|
||||
|
||||
if (isNotEmpty(redirectUrl)) {
|
||||
|
Reference in New Issue
Block a user