From e6cbf972ec13ea545187dd775d41150ceb0b5481 Mon Sep 17 00:00:00 2001 From: Chris Poucet Date: Tue, 22 Aug 2023 12:56:43 +0200 Subject: Ignore errors when fetching the account for gr-user-header. This can happen when you click through on account you don't have access to to see their changes. Google-Bug-Id: b/270937358 Release-Notes: skip Change-Id: I67d744af32dfc3ca108bc65cc1f2727dd5e2853f --- .../app/elements/change-list/gr-user-header/gr-user-header.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/polygerrit-ui/app/elements/change-list/gr-user-header/gr-user-header.ts b/polygerrit-ui/app/elements/change-list/gr-user-header/gr-user-header.ts index 57f9ee694a..3f9941624c 100644 --- a/polygerrit-ui/app/elements/change-list/gr-user-header/gr-user-header.ts +++ b/polygerrit-ui/app/elements/change-list/gr-user-header/gr-user-header.ts @@ -117,10 +117,12 @@ export class GrUserHeader extends LitElement { return; } - this.restApiService.getAccountDetails(userId).then(details => { - this._accountDetails = details ?? undefined; - this._status = details?.status ?? ''; - }); + this.restApiService + .getAccountDetails(userId, () => {}) + .then(details => { + this._accountDetails = details ?? undefined; + this._status = details?.status ?? ''; + }); } _computeDetail( -- cgit v1.2.3