Skip to content

Commit

Permalink
chore: fix some types
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitFicus committed Jun 17, 2024
1 parent 005aafc commit 5e48c12
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion izanami-frontend/src/components/FeatureTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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));
},
Expand Down
2 changes: 1 addition & 1 deletion izanami-frontend/src/pages/keys.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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));
},
Expand Down
2 changes: 1 addition & 1 deletion izanami-frontend/src/pages/tags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export function Tags(props: { tenant: string }) {
const name = info.getValue();
return (
<>
<div key={name}>
<div key={String(name)}>
<NavLink
className={() => ""}
to={`/tenants/${tenant}/tags/${name}`}
Expand Down
2 changes: 1 addition & 1 deletion izanami-frontend/src/pages/users.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ||
Expand Down
26 changes: 14 additions & 12 deletions izanami-frontend/src/pages/wasmScripts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,20 @@ export function WasmScripts(props: { tenant: string }) {
cell: (info) => {
return (
<>
{info.getValue().map(({ name, project, id }: any) => {
return (
<div key={id}>
<NavLink
className={() => ""}
to={`/tenants/${tenant}/projects/${project}`}
>
{name}({project})
</NavLink>
</div>
);
})}
{(info.getValue() as any).map(
({ name, project, id }: any) => {
return (
<div key={id}>
<NavLink
className={() => ""}
to={`/tenants/${tenant}/projects/${project}`}
>
{name}({project})
</NavLink>
</div>
);
}
)}
</>
);
},
Expand Down

0 comments on commit 5e48c12

Please sign in to comment.