Browse Source

fix: cleanup `continueAfterSignIn` from localstorage after getting the value

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/6847/head
Pranav C 1 year ago
parent
commit
5765e8de81
  1. 2
      packages/nc-gui/pages/index.vue

2
packages/nc-gui/pages/index.vue

@ -93,7 +93,7 @@ onMounted(() => {
return navigateTo(route.value.query.continueAfterSignIn as string) return navigateTo(route.value.query.continueAfterSignIn as string)
} else { } else {
const continueAfterSignIn = localStorage.getItem('continueAfterSignIn') const continueAfterSignIn = localStorage.getItem('continueAfterSignIn')
localStorage.removeItem('continueAfterSignIn')
if (continueAfterSignIn) { if (continueAfterSignIn) {
return navigateTo({ return navigateTo({
path: continueAfterSignIn, path: continueAfterSignIn,

Loading…
Cancel
Save