Skip to content
代码片段 群组 项目
提交 95c4e171 编辑于 作者: NataliaTepluhina's avatar NataliaTepluhina 提交者: Natalia Tepluhina
浏览文件

Added groupMembers checks

上级 4c85c77d
No related branches found
No related tags found
无相关合并请求
......@@ -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
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册