fix(frontend/Skeb): APIエラーを無視するように (MisskeyIO#979)
This commit is contained in:
parent
e0e4ea0c0c
commit
1d1d8853f6
2 changed files with 10 additions and 2 deletions
|
@ -24,7 +24,11 @@ async function fetchSkebStatus() {
|
|||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
userSkebStatus.value = await misskeyApiGet('users/get-skeb-status', { userId: props.userId });
|
||||
} catch {
|
||||
userSkebStatus.value = null;
|
||||
}
|
||||
}
|
||||
|
||||
if (props.role.behavior === 'skeb') {
|
||||
|
|
|
@ -357,7 +357,11 @@ async function fetchSkebStatus() {
|
|||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
userSkebStatus.value = await misskeyApiGet('users/get-skeb-status', { userId: props.user.id });
|
||||
} catch {
|
||||
userSkebStatus.value = null;
|
||||
}
|
||||
}
|
||||
|
||||
function buildSkebStatus(): string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue