Improved short URL creation

This commit is contained in:
Alejandro Celaya
2020-04-10 18:42:08 +02:00
parent eb65e99024
commit 2a2bae6d1a
4 changed files with 34 additions and 23 deletions

View File

@@ -39,6 +39,8 @@ export const createShortUrl = (buildShlinkApiClient) => (data) => async (dispatc
dispatch({ type: CREATE_SHORT_URL, result });
} catch (e) {
dispatch({ type: CREATE_SHORT_URL_ERROR });
throw e;
}
};