BigW Consortium Gitlab

Commit a61eda78 by winh

Add condition if there is a current user to DropdownUser

parent abfb5910
......@@ -32,8 +32,11 @@ class DropdownUser extends gl.FilteredSearchDropdown {
}
hideCurrentUser() {
const currenUserItem = this.dropdown.querySelector('.js-current-user');
currenUserItem.classList.add('hidden');
const currentUserItem = this.dropdown.querySelector('.js-current-user');
if (currentUserItem) {
currentUserItem.classList.add('hidden');
}
}
itemClicked(e) {
......
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