Skip to content

Commit

Permalink
🔥 (navigation) remove logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Tahul committed May 22, 2021
1 parent 61cedc2 commit 007c238
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/core/runtime/composables/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,10 @@ export const useDocusNavigation = ({ $nuxt, context, state, api }: DocusAddonCon
let items = nav

if (from) {
console.log('from:', from)

const paths = from.split('/')

from = paths.slice(0, paths.length - 1).join('/')

console.log('from, then:', from)

const link = items.find(link => link.to === from)

if (link && (link.navigation as NavItemNavigationConfig).exclusive) items = [link]
Expand Down

0 comments on commit 007c238

Please sign in to comment.