From 2ed3ca469a6f9877c3a90fcd8f47102772302710 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 4 Jun 2019 21:27:12 +0100 Subject: [PATCH] Fix linting --- src/components/SessionForm.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 @@
@@ -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 => {