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

Changed check to optional chaining

上级 198f25df
No related branches found
No related tags found
无相关合并请求
...@@ -113,9 +113,7 @@ export default { ...@@ -113,9 +113,7 @@ export default {
update(data) { update(data) {
// TODO Remove null filter (BE fix required) // TODO Remove null filter (BE fix required)
// https://gitlab.com/gitlab-org/gitlab/-/issues/329750 // https://gitlab.com/gitlab-org/gitlab/-/issues/329750
const users = data.workspace?.users?.nodes.filter((x) => x).map(({ user }) => user) || []; return data.workspace?.users?.nodes.filter((x) => x?.user).map(({ user }) => user) || [];
// User field is nullable and we only want to display non-null users
return users.filter((u) => u);
}, },
debounce: ASSIGNEES_DEBOUNCE_DELAY, debounce: ASSIGNEES_DEBOUNCE_DELAY,
error({ graphQLErrors }) { error({ graphQLErrors }) {
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册