From bbb8526d342b7bd16a93ac4c802cecec155aedba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Wed, 6 Mar 2019 11:12:22 +0100 Subject: [PATCH] Validate on appendContacts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- src/store/contacts.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/store/contacts.js b/src/store/contacts.js index 1a1c6d153..e520d1602 100644 --- a/src/store/contacts.js +++ b/src/store/contacts.js @@ -44,6 +44,7 @@ const mutations = { appendContacts(state, contacts = []) { state.contacts = contacts.reduce(function(list, contact) { if (contact instanceof Contact) { + validate(contact) Vue.set(list, contact.key, contact) } else { console.error('Wrong contact object', contact)