Kaynağa Gözat

Fix list membership actions

tusooa 2 yıl önce
ebeveyn
işleme
5e98ee05e4
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      src/components/lists_edit/lists_edit.js

+ 2 - 2
src/components/lists_edit/lists_edit.js

@@ -95,10 +95,10 @@ const ListsNew = {
       return this.addedUserIds.has(user.id)
     },
     addUser (user) {
-      this.$store.dispatch('addListAccount', { accountId: this.user.id, listId: this.id })
+      this.$store.dispatch('addListAccount', { accountId: user.id, listId: this.id })
     },
     removeUser (userId) {
-      this.$store.dispatch('removeListAccount', { accountId: this.user.id, listId: this.id })
+      this.$store.dispatch('removeListAccount', { accountId: userId, listId: this.id })
     },
     onSearchLoading (results) {
       this.searchLoading = true