Fix resetting onboarding in web after #6564 Oversight on my part while refactoring the onboarding system in #6564. The new centralized `acceptOnboarding` workflow constructs a relative path, so we have to get out of the settings before invoking it.
This commit is contained in:
@ -74,6 +74,11 @@ export const AllSettingsFields = forwardRef(
|
|||||||
codeManager,
|
codeManager,
|
||||||
kclManager,
|
kclManager,
|
||||||
}
|
}
|
||||||
|
// We need to navigate out of settings before accepting onboarding
|
||||||
|
// in the web
|
||||||
|
if (!isDesktop()) {
|
||||||
|
navigate('..')
|
||||||
|
}
|
||||||
acceptOnboarding(props).catch((reason) =>
|
acceptOnboarding(props).catch((reason) =>
|
||||||
catchOnboardingWarnError(reason, props)
|
catchOnboardingWarnError(reason, props)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user