From 39c6fa9e55e91f61dca254b5c0c89c5c90cb5606 Mon Sep 17 00:00:00 2001 From: Pablo Lara Date: Thu, 19 Sep 2024 09:08:22 +0200 Subject: [PATCH] fix: fix build errors --- app/(prowler)/page.tsx | 2 -- components/auth/AuthForm.tsx | 1 + components/providers/ProviderInfo.tsx | 1 - components/providers/table/FilterColumnTable.tsx | 2 ++ components/ui/chart/Chart.tsx | 3 ++- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/(prowler)/page.tsx b/app/(prowler)/page.tsx index 1fdd78d351d..261ca1c00f8 100644 --- a/app/(prowler)/page.tsx +++ b/app/(prowler)/page.tsx @@ -1,7 +1,6 @@ import { Spacer } from "@nextui-org/react"; import { SeverityChart, StatusChart } from "@/components/charts"; -import { FilterControls } from "@/components/filters"; import { AttackSurface } from "@/components/overview"; import { Header } from "@/components/ui"; import { CustomBox } from "@/components/ui/custom"; @@ -11,7 +10,6 @@ export default function Home() { <>
-
{ // const newUser = await signUp(data); // } } catch (error) { + // eslint-disable-next-line no-console console.error(error); } }; diff --git a/components/providers/ProviderInfo.tsx b/components/providers/ProviderInfo.tsx index 96f9df0cbd5..5c3fa06fbe0 100644 --- a/components/providers/ProviderInfo.tsx +++ b/components/providers/ProviderInfo.tsx @@ -7,7 +7,6 @@ import { GCPProviderBadge, KS8ProviderBadge, } from "../icons/providers-badge"; -import { CustomLoader } from "../ui/custom"; interface ProviderInfoProps { connected: boolean | null; diff --git a/components/providers/table/FilterColumnTable.tsx b/components/providers/table/FilterColumnTable.tsx index 42c187a2040..09b210dd448 100644 --- a/components/providers/table/FilterColumnTable.tsx +++ b/components/providers/table/FilterColumnTable.tsx @@ -16,6 +16,7 @@ export function FilterColumnTable({ filters }: FilterColumnTableProps) { if (key.startsWith("filter[") && key.endsWith("]")) { const filterKey = key.slice(7, -1); if (filters.some((filter) => filter.key === filterKey)) { + // eslint-disable-next-line security/detect-object-injection currentFilters[filterKey] = value; } } @@ -46,6 +47,7 @@ export function FilterColumnTable({ filters }: FilterColumnTableProps) {