Skip to content
代码片段 群组 项目
未验证 提交 a349633a 编辑于 作者: Artur Fedorov's avatar Artur Fedorov
浏览文件

Fix Vue 3 specs

Add check for null and undefined
上级 ce3cddb7
加载中
......@@ -117,7 +117,9 @@ export default {
if (!data) {
return;
}
this.localUsers = unionBy(this.localUsers, [data.currentUser], 'id');
const currentUsers = data.currentUser ? [data.currentUser] : [];
this.localUsers = unionBy(this.localUsers, currentUsers, 'id');
},
},
},
......
......@@ -246,5 +246,4 @@ spec/frontend/vue_shared/directives/tooltip_on_truncate_spec.js
spec/frontend/vue_shared/directives/track_event_spec.js
spec/frontend/vue_shared/issuable/sidebar/components/issuable_sidebar_root_spec.js
spec/frontend/webhooks/components/push_events_spec.js
spec/frontend/work_items/components/work_item_assignees_spec.js
spec/frontend/work_items/components/work_item_description_rendered_spec.js
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册