Skip to content

Commit a9bc5be

Browse files
kylecannonmeeroslav
authored andcommitted
fix: do not use index for current route comparison
1 parent 102f1b3 commit a9bc5be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/angular-routing/src/lib/router.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export class RouterComponent implements OnInit, OnDestroy {
152152
}
153153
return (
154154
previous.length === current.length &&
155-
previous.every((route, i) => route[i] === current[i])
155+
previous.every((route, i) => route === current[i])
156156
);
157157
}
158158

0 commit comments

Comments
 (0)