We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0196c0 commit 496d1aaCopy full SHA for 496d1aa
1 file changed
src/app/core/record/record.service.ts
@@ -155,7 +155,16 @@ export class RecordService {
155
.getFeaturedWorks(options)
156
.pipe(startWith(<Object>undefined)),
157
this.getLastModifiedTime(options).pipe(startWith(<Object>undefined)),
158
- this._userInfo.getUserInfo(options).pipe(startWith(<Object>undefined)),
+ 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
+ ),
168
])
169
.pipe(
170
tap(
0 commit comments