fix
This commit is contained in:
parent
73b5c12927
commit
318759cfa4
5 changed files with 13 additions and 15 deletions
|
@ -103,7 +103,7 @@ export const apiWithDialog = ((
|
|||
) => {
|
||||
const promise = api(endpoint, data, token);
|
||||
promiseDialog(promise, null, (e) => {
|
||||
dialog({
|
||||
alert({
|
||||
type: 'error',
|
||||
text: e.message + '\n' + (e as any).id,
|
||||
});
|
||||
|
@ -136,7 +136,7 @@ export function promiseDialog<T extends Promise<any>>(
|
|||
if (onFailure) {
|
||||
onFailure(e);
|
||||
} else {
|
||||
dialog({
|
||||
alert({
|
||||
type: 'error',
|
||||
text: e
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue