diff --git a/src/components/list_edit/list_edit.js b/src/components/list_edit/list_edit.js index 42316e03..3ae0459a 100644 --- a/src/components/list_edit/list_edit.js +++ b/src/components/list_edit/list_edit.js @@ -40,11 +40,10 @@ const ListNew = { return this.userIds.map(userId => this.findUser(userId)) }, selectedUsers () { - const users = this.selectedUserIds.map(userId => this.findUser(userId)) - if (users.includes(undefined)) { - return [] + for (let i = 0; i < this.selectedUserIds.length; i++) { + this.$store.dispatch('fetchUserIfMissing', this.selectedUserIds[i]) } - return users + return this.selectedUserIds.map(userId => this.findUser(userId)) }, availableUsers () { if (this.query.length !== 0) {