mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-13 11:03:50 +00:00
Ensured server is properly loaded before trying to render any children component
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -32,7 +32,6 @@ export default handleActions({
|
||||
|
||||
export const deleteShortUrl = (buildShlinkApiClient) => (shortCode, domain) => async (dispatch, getState) => {
|
||||
dispatch({ type: DELETE_SHORT_URL_START });
|
||||
|
||||
const { deleteShortUrl } = await buildShlinkApiClient(getState);
|
||||
|
||||
try {
|
||||
|
||||
@@ -58,7 +58,6 @@ export default handleActions({
|
||||
|
||||
export const listShortUrls = (buildShlinkApiClient) => (params = {}) => async (dispatch, getState) => {
|
||||
dispatch({ type: LIST_SHORT_URLS_START });
|
||||
|
||||
const { listShortUrls } = await buildShlinkApiClient(getState);
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user