added online and trigger
This commit is contained in:
+2
-11
@@ -163,18 +163,9 @@ async function bootstrapSettingsFromApi(): Promise<void> {
|
||||
setCachedMainMetal(mainMetalRow?.value)
|
||||
const { setCachedMainWalletProductIds } = await import('@/components/mobile/utils/wallet')
|
||||
setCachedMainWalletProductIds(parseMainWalletProductIds(mainWalletRow?.value))
|
||||
} catch {
|
||||
storeModeFromSettings = false
|
||||
setBannerEnabledFromSettings(false)
|
||||
setTrackingSystemsEnabledFromSettings(false)
|
||||
setCustomerDirectSmsEnabledFromSettings(false)
|
||||
setConditionalOrderEnabledFromSettings(false)
|
||||
applyAccountingProviderFromRows([])
|
||||
setCachedMainMetal(null)
|
||||
const { setCachedMainWalletProductIds } = await import('@/components/mobile/utils/wallet')
|
||||
setCachedMainWalletProductIds([])
|
||||
} finally {
|
||||
settingsBootstrapped = true
|
||||
} catch {
|
||||
// Allow retry on next init* call — do not lock flags to false forever.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user