Skip to content

Commit 75eb5aa

Browse files
committed
fix length comparison
1 parent 66f9c9e commit 75eb5aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

report-viewer/report-viewer/src/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ router.onError((error) => {
9696
// preserve query parameters
9797
router.beforeEach((to, from, next) => {
9898
// Only add the old query if the target has none defined, this prevents an infinite redirect loop
99-
if (Object.keys(to.query).length == 0 && Object.keys(from.query).length >= 0) {
99+
if (Object.keys(to.query).length == 0 && Object.keys(from.query).length > 0) {
100100
next({ ...to, query: from.query })
101101
} else {
102102
next()

0 commit comments

Comments
 (0)