diff --git a/src/components/SessionForm.vue b/src/components/SessionForm.vue
index fd14218..65c5491 100644
--- a/src/components/SessionForm.vue
+++ b/src/components/SessionForm.vue
@@ -4,7 +4,7 @@
- - {{ error.detail }}
+ - {{ error.detail }}
@@ -48,16 +48,16 @@ export default {
type: 'node--session',
attributes: this.form,
relationships: {
- "field_speakers": {
- "data": {
- "type": "user--user",
- "id": uuid
+ 'field_speakers': {
+ 'data': {
+ 'id': uuid,
+ 'type': 'user--user'
}
- },
+ }
}
}
- const baseUrl = 'http://drupaltestcamp.docksal';
+ const baseUrl = 'http://drupaltestcamp.docksal'
axios({
method: 'post',
@@ -65,7 +65,7 @@ export default {
data: { data },
headers: {
'Accept': 'application/vnd.api+json',
- 'Content-Type': 'application/vnd.api+json',
+ 'Content-Type': 'application/vnd.api+json'
}
})
.then(response => {