fix: persist interceptor state for loged out user
This commit is contained in:
@@ -119,10 +119,8 @@ export const getDefaultSettings = (): SettingsDef => {
|
|||||||
|
|
||||||
// Wait for platform to initialize before setting CURRENT_INTERCEPTOR_ID
|
// Wait for platform to initialize before setting CURRENT_INTERCEPTOR_ID
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
applySetting(
|
defaultSettings.CURRENT_INTERCEPTOR_ID =
|
||||||
"CURRENT_INTERCEPTOR_ID",
|
|
||||||
platform?.interceptors.default || "browser"
|
platform?.interceptors.default || "browser"
|
||||||
)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
return defaultSettings
|
return defaultSettings
|
||||||
|
|||||||
Reference in New Issue
Block a user