Skip to content

Commit 496d1aa

Browse files
PD-5416 (#2828)
Co-authored-by: Angel Montenegro <a.montenegro@orcid.org>
1 parent d0196c0 commit 496d1aa

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/app/core/record/record.service.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,16 @@ export class RecordService {
155155
.getFeaturedWorks(options)
156156
.pipe(startWith(<Object>undefined)),
157157
this.getLastModifiedTime(options).pipe(startWith(<Object>undefined)),
158-
this._userInfo.getUserInfo(options).pipe(startWith(<Object>undefined)),
158+
this._userInfo.getUserInfo(options).pipe(
159+
catchError((error) => {
160+
// For public records, a failing auth userInfo request must not block page rendering.
161+
if (options?.publicRecordId) {
162+
return of(null)
163+
}
164+
return this._errorHandler.handleError(error)
165+
}),
166+
startWith(<Object>undefined)
167+
),
159168
])
160169
.pipe(
161170
tap(

0 commit comments

Comments
 (0)