Skip to content

Commit

Permalink
fix: bookmark details should show all lists
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundhung committed May 23, 2022
1 parent f8be96b commit 8ff89ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function useSessionData(): SessionData {
}

export function useLists(): Required<GuideMetadata>['lists'] {
const [rootMatch] = useMatches();
const [, layoutMatch] = useMatches();

return rootMatch?.data.lists ?? [];
return layoutMatch?.data.lists ?? [];
}

0 comments on commit 8ff89ec

Please sign in to comment.