Skip to content

Commit

Permalink
Merge pull request #973 from nextcloud/fix/validate
Browse files Browse the repository at this point in the history
Validate on appendContacts
  • Loading branch information
skjnldsv authored Mar 6, 2019
2 parents b2f7cf1 + bbb8526 commit 5aff019
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/store/contacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5aff019

Please sign in to comment.