mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-01 16:28:11 +08:00
Fix frontend mishandling of null userinfo (#1795)
* Fix frontend mishandling of null userinfo If the authentication is disabled, the userinfo endpoint returns null. This case needs to be handled. #1780 * Small fix for handling refesh tokens in auth
This commit is contained in:
@@ -43,7 +43,7 @@ async function configFetch(dispatch) {
|
||||
|
||||
async function userInfoFetch(dispatch) {
|
||||
return fetchJson("userinfo").then((response) => {
|
||||
const userinfo = { ...response.userinfo };
|
||||
const { userinfo } = response || {};
|
||||
dispatch({
|
||||
type: "userinfo load complete",
|
||||
userinfo,
|
||||
|
||||
Reference in New Issue
Block a user