diff options
author | Chris Poucet <poucet@google.com> | 2023-08-22 12:56:43 +0200 |
---|---|---|
committer | Chris Poucet <poucet@google.com> | 2023-08-22 13:34:56 +0200 |
commit | e6cbf972ec13ea545187dd775d41150ceb0b5481 (patch) | |
tree | e6b0ea505f564e2eacf0734e9e25112e39724c6d | |
parent | f0e7862b8db616c66e092ff0f813f741d86a0ffe (diff) |
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
-rw-r--r-- | polygerrit-ui/app/elements/change-list/gr-user-header/gr-user-header.ts | 10 |
1 files 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( |