Commit 95c4e171 authored by NataliaTepluhina's avatar NataliaTepluhina Committed by Natalia Tepluhina

Added groupMembers checks

parent 4c85c77d
...@@ -168,10 +168,12 @@ export default { ...@@ -168,10 +168,12 @@ export default {
}) })
.then(({ data }) => { .then(({ data }) => {
this.users = this.users =
data?.project?.projectMembers?.nodes?.map(({ user }) => ({ data?.project?.projectMembers?.nodes
...user, .filter((x) => x?.user)
id: getIdFromGraphQLId(user.id), .map(({ user }) => ({
})) || []; ...user,
id: getIdFromGraphQLId(user.id),
})) || [];
return this.users; return this.users;
}) })
.finally(() => { .finally(() => {
......
...@@ -60,7 +60,9 @@ export default { ...@@ -60,7 +60,9 @@ export default {
search: authorsSearchTerm, search: authorsSearchTerm,
}, },
}) })
.then(({ data }) => data.group?.groupMembers.nodes.map((item) => item.user)); .then(({ data }) =>
data.group?.groupMembers.nodes.filter((x) => x?.user).map(({ user }) => user),
);
}, },
fetchLabels(labelSearchTerm) { fetchLabels(labelSearchTerm) {
return this.$apollo return this.$apollo
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment