Skip to content

Commit

Permalink
Avoid NavigationDuplicated error in console (#7472)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan authored Aug 18, 2022
1 parent 888fda1 commit cea7077
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions packages/web-app-files/src/views/Personal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,16 @@ export default defineComponent({
storageId = drivesResponse.data.value[0].id
}
return this.$router.replace({
to,
params: { ...to.params, storageId, item: to.params.item || this.homeFolder },
query: to.query
})
return (
this.$router
.replace({
to,
params: { ...to.params, storageId, item: to.params.item || this.homeFolder },
query: to.query
})
// avoid NavigationDuplicated error in console
.catch(() => {})
)
}
const needsRedirectToHome =
Expand Down

0 comments on commit cea7077

Please sign in to comment.