Use more destructuring

This commit is contained in:
Oliver Davies 2019-06-05 00:41:40 +01:00
parent 37e1338d79
commit c9e6f5e614
2 changed files with 3 additions and 3 deletions

View file

@ -47,7 +47,7 @@ export default {
computed: { computed: {
sortedSessions: function () { sortedSessions: function () {
return _(this.sessions).sortBy(session => session.attributes.title) return _(this.sessions).sortBy(({ attributes }) => attributes.title)
} }
} }
} }

View file

@ -30,8 +30,8 @@ export default {
}, },
methods: { methods: {
isAccepted: function (session) { isAccepted: function ({ attributes }) {
return session.attributes.field_session_status === 'accepted' return attributes.field_session_status === 'accepted'
} }
} }
} }