fix(ui): remove index.html from service worker cache after creating admin user (#3642)
This commit is contained in:
@@ -3,6 +3,7 @@ import { v4 as uuidv4 } from 'uuid'
|
||||
import { baseUrl } from '../utils'
|
||||
import config from '../config'
|
||||
import { jwtDecode } from 'jwt-decode'
|
||||
import { removeHomeCache } from '../utils/removeHomeCache'
|
||||
|
||||
const customAuthorizationHeader = 'X-ND-Authorization'
|
||||
const clientUniqueIdHeader = 'X-ND-Client-Unique-Id'
|
||||
@@ -26,6 +27,7 @@ const httpClient = (url, options = {}) => {
|
||||
localStorage.setItem('userId', decoded.uid)
|
||||
// Avoid going to create admin dialog after logout/login without a refresh
|
||||
config.firstTime = false
|
||||
removeHomeCache()
|
||||
}
|
||||
return response
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user