Use more destructuring
This commit is contained in:
parent
37e1338d79
commit
c9e6f5e614
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue