Error from Error Analyzer
View in Error Analyzer
Root Cause
ensureLogin() calls orgItem.querySelector('.button.login').focus() but a race condition between two getLoginInfo() calls (one in ensureLogin, one in updateProjects) can cause the login button to be rendered with class logout instead of login if the auth state changes in between. The querySelector returns null and .focus() throws.