summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Poucet <poucet@google.com>2023-08-22 12:56:43 +0200
committerPaladox none <thomasmulhall410@yahoo.com>2023-08-26 14:18:51 +0000
commit3d09186395fda02fcf22ce9c4c937225e91192cd (patch)
tree0c4587b6334883085d6f756758ccc7968e415948
parent602ff8537f43e2ff9bfdd31e244cd31d6362fa23 (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 (cherry picked from commit e6cbf972ec13ea545187dd775d41150ceb0b5481)
-rw-r--r--polygerrit-ui/app/elements/change-list/gr-user-header/gr-user-header.ts10
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(