merged cache buster and accepted current changes
This commit is contained in:
commit
15aeb887ed
3 changed files with 44 additions and 1 deletions
|
|
@ -82,7 +82,20 @@ export default function UserWrapper(props: Props) {
|
|||
firmware: new Map()
|
||||
})
|
||||
}).catch(() => {
|
||||
setGlobal(globalDefault)
|
||||
userAPI.getUser(user_id).then(user => {
|
||||
setGlobal({
|
||||
user: user ? user : User.create(),
|
||||
team: globalDefault.team,
|
||||
as: "",
|
||||
showErrors: false,
|
||||
userTeamPermissions: [],
|
||||
backgroundTasksComplete: false,
|
||||
firmware: new Map()
|
||||
})
|
||||
}).catch(() => {
|
||||
setGlobal(globalDefault)
|
||||
})
|
||||
|
||||
})
|
||||
.finally(() => {
|
||||
setLoading(false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue