API & Client: fix

- user edition
- title for activity with gpx and no name in gpx
- style
This commit is contained in:
Sam
2018-06-14 13:39:18 +02:00
parent 019ed42bae
commit 3acdabb4da
6 changed files with 51 additions and 8 deletions

View File

@ -40,7 +40,7 @@ export default class FitTrackeeApi {
static postData(target, data) {
const params = {
url: `${apiUrl}${target}/${data.id}`,
url: `${apiUrl}${target}${data.id ? `/${data.id}` : '' }`,
method: 'POST',
body: data,
type: 'application/json',