Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export const upsertCompany =
- (company: ICompany) => async (dispatch: AppDispatch) => {
- try {
- await API.upsert.company(company);
- dispatch(loadCompanies());
- } catch (e) {
- dispatch(showError('Couldn't upsert company'));
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment