Auto-fix lint errors
This commit is contained in:
parent
4c5720a573
commit
ae0a8b8da4
625 changed files with 3170 additions and 3232 deletions
|
@ -51,9 +51,9 @@ export function asyncAction(id: string, fn: () => Promise<any>, pendingFn: () =>
|
|||
request: typeof pendingFn === 'function' ? pendingFn() : undefined,
|
||||
});
|
||||
fn().then((result) => {
|
||||
dispatch({action: id + '.success', result});
|
||||
dispatch({ action: id + '.success', result });
|
||||
}).catch((err) => {
|
||||
dispatch({action: id + '.failure', err});
|
||||
dispatch({ action: id + '.failure', err });
|
||||
});
|
||||
};
|
||||
return new AsyncActionPayload(helper);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue