From 5e48c12e598cd362aafa5b97c2b0cc42ddd92d4a Mon Sep 17 00:00:00 2001 From: Benjamin Cavy Date: Mon, 17 Jun 2024 13:11:30 +0200 Subject: [PATCH] chore: fix some types --- .../src/components/FeatureTable.tsx | 2 +- izanami-frontend/src/pages/keys.tsx | 2 +- izanami-frontend/src/pages/tags.tsx | 2 +- izanami-frontend/src/pages/users.tsx | 2 +- izanami-frontend/src/pages/wasmScripts.tsx | 26 ++++++++++--------- 5 files changed, 18 insertions(+), 16 deletions(-) diff --git a/izanami-frontend/src/components/FeatureTable.tsx b/izanami-frontend/src/components/FeatureTable.tsx index e88d67b90..4e0fd7607 100644 --- a/izanami-frontend/src/components/FeatureTable.tsx +++ b/izanami-frontend/src/components/FeatureTable.tsx @@ -1557,7 +1557,7 @@ export function FeatureTable(props: { if (!filterValue || filterValue?.length === 0) { return true; } - const value = row.getValue(columnId); + const value: any = row.getValue(columnId); return filterValue.some((v: string) => value.includes(v)); }, diff --git a/izanami-frontend/src/pages/keys.tsx b/izanami-frontend/src/pages/keys.tsx index 2ca56baef..ed83bd33b 100644 --- a/izanami-frontend/src/pages/keys.tsx +++ b/izanami-frontend/src/pages/keys.tsx @@ -203,7 +203,7 @@ export default function Keys(props: { tenant: string }) { if (!filterValue || filterValue?.length === 0) { return true; } - const value = row.getValue(columnId); + const value: any = row.getValue(columnId); return filterValue.some((v: string) => value.includes(v)); }, diff --git a/izanami-frontend/src/pages/tags.tsx b/izanami-frontend/src/pages/tags.tsx index b48fcbef4..e3b8f6e4d 100644 --- a/izanami-frontend/src/pages/tags.tsx +++ b/izanami-frontend/src/pages/tags.tsx @@ -235,7 +235,7 @@ export function Tags(props: { tenant: string }) { const name = info.getValue(); return ( <> -
+
""} to={`/tenants/${tenant}/tags/${name}`} diff --git a/izanami-frontend/src/pages/users.tsx b/izanami-frontend/src/pages/users.tsx index 4a7350eed..d4a7d59c0 100644 --- a/izanami-frontend/src/pages/users.tsx +++ b/izanami-frontend/src/pages/users.tsx @@ -123,7 +123,7 @@ export function Users() { if (!filterValue || filterValue?.length === 0) { return true; } - const value = row.getValue(columnId); + const value: any = row.getValue(columnId); return ( row.original.admin || diff --git a/izanami-frontend/src/pages/wasmScripts.tsx b/izanami-frontend/src/pages/wasmScripts.tsx index 3adb2fb2d..0a3320fda 100644 --- a/izanami-frontend/src/pages/wasmScripts.tsx +++ b/izanami-frontend/src/pages/wasmScripts.tsx @@ -69,18 +69,20 @@ export function WasmScripts(props: { tenant: string }) { cell: (info) => { return ( <> - {info.getValue().map(({ name, project, id }: any) => { - return ( -
- ""} - to={`/tenants/${tenant}/projects/${project}`} - > - {name}({project}) - -
- ); - })} + {(info.getValue() as any).map( + ({ name, project, id }: any) => { + return ( +
+ ""} + to={`/tenants/${tenant}/projects/${project}`} + > + {name}({project}) + +
+ ); + } + )} ); },