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

Added groupMembers checks

parent 4c85c77d
......@@ -168,10 +168,12 @@ export default {
})
.then(({ data }) => {
this.users =
data?.project?.projectMembers?.nodes?.map(({ user }) => ({
...user,
id: getIdFromGraphQLId(user.id),
})) || [];
data?.project?.projectMembers?.nodes
.filter((x) => x?.user)
.map(({ user }) => ({
...user,
id: getIdFromGraphQLId(user.id),
})) || [];
return this.users;
})
.finally(() => {
......
......@@ -60,7 +60,9 @@ export default {
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) {
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