Client - display info and errors on workout edition

This commit is contained in:
Sam
2021-09-29 16:34:48 +02:00
parent 6bfcb24133
commit 997469d959
10 changed files with 182 additions and 28 deletions

View File

@ -168,7 +168,7 @@ export const actions: ActionTree<IWorkoutsState, IRootState> &
context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)
context.commit(WORKOUTS_STORE.MUTATIONS.SET_WORKOUT_LOADING, true)
if (!payload.file) {
throw new Error('No gpx file provided')
throw new Error('No file part')
}
const form = new FormData()
form.append('file', payload.file)