Client - handle activity 'uuid' instead of 'id' - fix #57

This commit is contained in:
Sam
2020-12-30 19:53:59 +01:00
parent 3af845f18c
commit 3c6bc54c79
8 changed files with 9 additions and 9 deletions

View File

@ -47,7 +47,7 @@ export const getOrUpdateData = (
canDispatch = true
) => dispatch => {
dispatch(setLoading(true))
if (data && data.id && isNaN(data.id)) {
if (data && data.id && target !== 'activities' && isNaN(data.id)) {
dispatch(setLoading(false))
return dispatch(setError(`${target}|Incorrect id`))
}