Do not hide notification behind message bar
This commit is contained in:
@@ -37,11 +37,15 @@ class Api {
|
||||
message: message,
|
||||
...options
|
||||
};
|
||||
await fetch(baseUrl, {
|
||||
const response = await fetch(baseUrl, {
|
||||
method: 'PUT',
|
||||
body: JSON.stringify(body),
|
||||
headers: maybeWithBasicAuth(headers, user)
|
||||
});
|
||||
if (response.status < 200 || response.status > 299) {
|
||||
throw new Error(`Unexpected response: ${response.status}`);
|
||||
}
|
||||
return response;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user