Fix linting

This commit is contained in:
Oliver Davies 2019-06-04 21:27:12 +01:00
parent fa9ca37fb4
commit 2ed3ca469a

View file

@ -4,7 +4,7 @@
<div v-if="errors.length" class="bg-red-100 border border-red-300 p-4 mb-6"> <div v-if="errors.length" class="bg-red-100 border border-red-300 p-4 mb-6">
<ul class="list-disc list-inside ml-3"> <ul class="list-disc list-inside ml-3">
<li v-for="error, i in errors" :key="i">{{ error.detail }}</li> <li v-for="error in errors" :key="error.detail">{{ error.detail }}</li>
</ul> </ul>
</div> </div>
@ -48,16 +48,16 @@ export default {
type: 'node--session', type: 'node--session',
attributes: this.form, attributes: this.form,
relationships: { relationships: {
"field_speakers": { 'field_speakers': {
"data": { 'data': {
"type": "user--user", 'id': uuid,
"id": uuid 'type': 'user--user'
} }
}, }
} }
} }
const baseUrl = 'http://drupaltestcamp.docksal'; const baseUrl = 'http://drupaltestcamp.docksal'
axios({ axios({
method: 'post', method: 'post',
@ -65,7 +65,7 @@ export default {
data: { data }, data: { data },
headers: { headers: {
'Accept': 'application/vnd.api+json', 'Accept': 'application/vnd.api+json',
'Content-Type': 'application/vnd.api+json', 'Content-Type': 'application/vnd.api+json'
} }
}) })
.then(response => { .then(response => {