mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-08-04 18:11:53 +00:00
Removed no longer needed async/await when building api client
This commit is contained in:
@@ -31,7 +31,7 @@ export default handleActions({
|
||||
|
||||
export const createShortUrl = (buildShlinkApiClient) => (data) => async (dispatch, getState) => {
|
||||
dispatch({ type: CREATE_SHORT_URL_START });
|
||||
const { createShortUrl } = await buildShlinkApiClient(getState);
|
||||
const { createShortUrl } = buildShlinkApiClient(getState);
|
||||
|
||||
try {
|
||||
const result = await createShortUrl(data);
|
||||
|
||||
Reference in New Issue
Block a user