don't crash admin-user page if one of the requests fails
This commit is contained in:
parent
477a01fab6
commit
c539734ec2
1 changed files with 3 additions and 3 deletions
|
|
@ -496,14 +496,14 @@ function createFetcher(withHint = true) {
|
|||
return () => Promise.all([
|
||||
(withHint && props.userHint) ? props.userHint : misskeyApi('users/show', {
|
||||
userId: props.userId,
|
||||
}),
|
||||
}).catch(() => null),
|
||||
(withHint && props.infoHint) ? props.infoHint : misskeyApi('admin/show-user', {
|
||||
userId: props.userId,
|
||||
}),
|
||||
}).catch(() => null),
|
||||
iAmAdmin
|
||||
? (withHint && props.ipsHint) ? props.ipsHint : misskeyApi('admin/get-user-ips', {
|
||||
userId: props.userId,
|
||||
})
|
||||
}).catch(() => null)
|
||||
: null,
|
||||
iAmAdmin
|
||||
? (withHint && props.apHint) ? props.apHint : misskeyApi('ap/get', {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue