Ensured server is properly loaded before trying to render any children component

This commit is contained in:
Alejandro Celaya
2020-03-05 08:59:07 +01:00
parent 853032ac7f
commit bc8905ee7f
9 changed files with 2 additions and 16 deletions

View File

@@ -31,7 +31,6 @@ export default handleActions({
export const createShortUrl = (buildShlinkApiClient) => (data) => async (dispatch, getState) => {
dispatch({ type: CREATE_SHORT_URL_START });
const { createShortUrl } = await buildShlinkApiClient(getState);
try {