fix typing errors

Signed-off-by: garionion <github@entr0py.de>
This commit is contained in:
garionion 2021-04-05 23:04:49 +02:00
parent 736edcd8a6
commit f0d147ab27
Signed by: garionion
GPG key ID: 53352FA607FA681A
14 changed files with 74 additions and 122 deletions

View file

@ -55,7 +55,10 @@ const routes: RouteRecordRaw[] = [
path: "/registerAccessPoint",
name: "RegisterAccessPoint",
component: RegisterAccessPoint,
props: (route) => ({ apID: Number(route.query["ap-id"]).valueOf() }),
props: (route) =>
route.query["ap-id"]
? { apID: Number(route.query["ap-id"]).valueOf() }
: {},
},
];