Skip to content

Commit

Permalink
Merge pull request #58 from prowler-cloud/fix/build-errors
Browse files Browse the repository at this point in the history
fix: fix build errors
  • Loading branch information
paabloLC authored Sep 19, 2024
2 parents 0adb8c1 + 39c6fa9 commit 035d06b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 0 additions & 2 deletions app/(prowler)/page.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -11,7 +10,6 @@ export default function Home() {
<>
<Header title="Scan Overview" icon="solar:pie-chart-2-outline" />
<Spacer y={4} />
<FilterControls providers date accounts regions mutedFindings />
<Spacer y={10} />
<div className="grid grid-cols-12 gap-4">
<CustomBox
Expand Down
1 change: 1 addition & 0 deletions components/auth/AuthForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export const AuthForm = ({ type }: { type: string }) => {
// const newUser = await signUp(data);
// }
} catch (error) {
// eslint-disable-next-line no-console
console.error(error);
}
};
Expand Down
1 change: 0 additions & 1 deletion components/providers/ProviderInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
GCPProviderBadge,
KS8ProviderBadge,
} from "../icons/providers-badge";
import { CustomLoader } from "../ui/custom";

interface ProviderInfoProps {
connected: boolean | null;
Expand Down
2 changes: 2 additions & 0 deletions components/providers/table/FilterColumnTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -46,6 +47,7 @@ export function FilterColumnTable({ filters }: FilterColumnTableProps) {
<Button
key={`${key}-${value}`}
onClick={() => applyFilter(key, value)}
// eslint-disable-next-line security/detect-object-injection
variant={activeFilters[key] === value ? "faded" : "light"}
size="sm"
>
Expand Down
3 changes: 2 additions & 1 deletion components/ui/chart/Chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,8 @@ function getPayloadConfigFromPayload(
}

return configLabelKey in config
? config[configLabelKey]
? // eslint-disable-next-line security/detect-object-injection
config[configLabelKey]
: config[key as keyof typeof config];
}

Expand Down

0 comments on commit 035d06b

Please sign in to comment.