Small cleanup.

This commit is contained in:
Roger Braun 2017-06-07 18:15:15 +02:00
parent dcd7d52eb5
commit 0effef236a
1 changed files with 2 additions and 3 deletions

View File

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