Small cleanup.

This commit is contained in:
Roger Braun 2017-06-07 18:15:15 +02:00
parent dcd7d52eb5
commit 0effef236a

View file

@ -1,4 +1,4 @@
import { filter, sortBy } from 'lodash' import { find, filter, sortBy } from 'lodash'
import { statusType } from '../../modules/statuses.js' import { statusType } from '../../modules/statuses.js'
import Status from '../status/status.vue' import Status from '../status/status.vue'
@ -86,8 +86,7 @@ const conversation = {
if (id) { if (id) {
this.preview.x = x this.preview.x = x
this.preview.y = y this.preview.y = y
this.preview.status = filter(this.conversation, { id: id })[0] this.preview.status = find(this.conversation, { id: id })
console.log(this.preview.status)
} else { } else {
this.preview.status = null this.preview.status = null
} }