fix query property parsing

This commit is contained in:
garionion 2021-04-07 12:23:59 +02:00
parent 356ab1fe54
commit fdf35ad14f
Signed by: garionion
GPG key ID: 53352FA607FA681A

View file

@ -51,7 +51,7 @@ const routes: RouteRecordRaw[] = [
name: "EditAccessPoint",
component: CreateAccessPoint,
props: (route) => ({
apID: Number.parseInt(route.query["site-id"] as string),
apID: Number.parseInt(route.query["ap-id"] as string),
edit: true,
}),
},
@ -61,7 +61,7 @@ const routes: RouteRecordRaw[] = [
component: RegisterAccessPoint,
props: (route) =>
route.query["ap-id"]
? { apID: Number.parseInt(route.query["site-id"] as string) }
? { apID: Number.parseInt(route.query["ap-id"] as string) }
: {},
},
];