Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then((validClient) => {
commit(Mutations.NETWORK_CLIENT_SET, validClient);
dispatch(Actions.TIME_FETCH_ACTIVE_INDEX);
dispatch(Actions.PROXY_PIPELINE_FETCH);
dispatch(Actions.APP_ROUTE_RUN);
dispatch(Actions.COLOR_FETCH_PRESET_NAMES, 500);
})
.catch((error) => {
setTimeout(() => {
dispatch(Actions.COLOR_FETCH_PRESET_NAMES, intervalTime);
}, intervalTime);
})