Import map

This commit is contained in:
Oliver Davies 2019-08-30 20:06:09 +01:00
parent f5861641f0
commit 42abb9957f

View file

@ -23,7 +23,7 @@
<script>
import axios from 'axios'
import _ from 'lodash'
import map from 'lodash/map'
import SessionFormMessage from '@/components/SessionFormMessage'
export default {
@ -89,7 +89,7 @@ export default {
this.form.body = ''
this.form.title = ''
}).catch(({ response: { data } }) => {
this.errors = _(data.errors).map('detail').value()
this.errors = map(data.errors, 'detail')
})
}
}