Client - init workouts store
This commit is contained in:
@ -6,6 +6,7 @@ import { IRootState } from '@/store/modules/root/types'
|
||||
import { ISportsState } from '@/store/modules/sports/types'
|
||||
import { IStatisticsState } from '@/store/modules/statistics/types'
|
||||
import { IUserState } from '@/store/modules/user/types'
|
||||
import { IWorkoutsState } from '@/store/modules/workouts/types'
|
||||
|
||||
export const getApiUrl = (): string => {
|
||||
return process.env.NODE_ENV === 'production'
|
||||
@ -21,7 +22,8 @@ export const handleError = (
|
||||
| ActionContext<IRootState, IRootState>
|
||||
| ActionContext<IUserState, IRootState>
|
||||
| ActionContext<IStatisticsState, IRootState>
|
||||
| ActionContext<ISportsState, IRootState>,
|
||||
| ActionContext<ISportsState, IRootState>
|
||||
| ActionContext<IWorkoutsState, IRootState>,
|
||||
error: AxiosError | null,
|
||||
msg = 'UNKNOWN'
|
||||
): void => {
|
||||
|
Reference in New Issue
Block a user