Skip to content

Commit

Permalink
replaced getting the first item by using route.params.locationId as s…
Browse files Browse the repository at this point in the history
…tring (#1930)
  • Loading branch information
andrepestana-aot authored May 8, 2023
1 parent 60ef9c7 commit 9b64d93
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sources/packages/web/src/router/InstitutionRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export const institutionRoutes: Array<RouteRecordRaw> = [
},
props: {
default: (route) => ({
locationId: parseInt(route.params.locationId[0]),
locationId: parseInt(route.params.locationId as string),
}),
},
meta: {
Expand All @@ -148,7 +148,7 @@ export const institutionRoutes: Array<RouteRecordRaw> = [
},
props: {
default: (route: RouteLocationNormalized) => ({
locationId: parseInt(route.params.locationId[0]),
locationId: parseInt(route.params.locationId as string),
}),
},
meta: {
Expand Down Expand Up @@ -181,7 +181,7 @@ export const institutionRoutes: Array<RouteRecordRaw> = [
},
props: {
default: (route) => ({
locationId: parseInt(route.params.locationId[0]),
locationId: parseInt(route.params.locationId as string),
}),
},
meta: {
Expand All @@ -201,7 +201,7 @@ export const institutionRoutes: Array<RouteRecordRaw> = [
},
props: {
default: (route) => ({
locationId: parseInt(route.params.locationId[0]),
locationId: parseInt(route.params.locationId as string),
}),
},
meta: {
Expand Down

0 comments on commit 9b64d93

Please sign in to comment.