Hotfix for JS error in auto completion in firefox.

This commit is contained in:
Shpuld Shpuldson 2017-06-23 16:49:11 +03:00
parent 937705ccb0
commit b284689313

View File

@ -49,7 +49,7 @@ const PostStatusForm = {
computed: { computed: {
candidates () { candidates () {
if (this.textAtCaret.charAt(0) === '@') { if (this.textAtCaret.charAt(0) === '@') {
const matchedUsers = filter(this.users, (user) => (user.name + user.screen_name).match(this.textAtCaret.slice(1))) const matchedUsers = filter(this.users, (user) => (String(user.name + user.screen_name)).match(this.textAtCaret.slice(1)))
if (matchedUsers.length <= 0) { if (matchedUsers.length <= 0) {
return false return false
} }