Skip to content

Commit

Permalink
fix: do not use index for current route comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecannon authored and meeroslav committed Dec 30, 2020
1 parent 102f1b3 commit a9bc5be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/angular-routing/src/lib/router.component.ts
Expand Up @@ -152,7 +152,7 @@ export class RouterComponent implements OnInit, OnDestroy {
}
return (
previous.length === current.length &&
previous.every((route, i) => route[i] === current[i])
previous.every((route, i) => route === current[i])
);
}

Expand Down

0 comments on commit a9bc5be

Please sign in to comment.