Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
feedthejim committed Apr 13, 2023
1 parent 2f3de97 commit 362ba66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ describe('navigateReducer', () => {
apply: true,
hashFragment: null,
segmentPaths: [
['children', 'linking', 'children', 'about', 'about', 'children'],
['children', 'linking', 'children', 'about', 'children'],
],
},
canonicalUrl: '/linking/about',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ export function navigateReducer(

currentCache = cache
currentTree = newTree

for (const subSegment of generateSegmentsFromPatch(treePatch)) {
scrollableSegments.push(
// the last segment is the same as the first segment in the patch
Expand Down

0 comments on commit 362ba66

Please sign in to comment.