Skip to content

Commit

Permalink
chore: stop eslint from freaking out
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanCassiere committed May 11, 2024
1 parent 203f648 commit ad450b8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/react-router/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,7 @@ export class Router<
scores: Array<number>
}> = []

// eslint-disable-next-line
const routes = Object.values(this.routesById) as Array<AnyRoute>
const routes: Array<AnyRoute> = Object.values(this.routesById)

routes.forEach((d, i) => {
if (d.isRoot || !d.path) {
Expand Down Expand Up @@ -936,9 +935,10 @@ export class Router<
fromMatches.find((e) => e.routeId === d.routeId),
)

const fromRouteByFromPathRouteId = (
this.routesById as RoutesById<TRouteTree>
)[stayingMatches?.find((d) => d.pathname === fromPath)?.routeId]
const fromRouteByFromPathRouteId =
this.routesById[
stayingMatches?.find((d) => d.pathname === fromPath)?.routeId
]

let pathname = dest.to
? this.resolvePathWithBase(fromPath, `${dest.to}`)
Expand Down

0 comments on commit ad450b8

Please sign in to comment.