diff --git a/client/src/app/pages/sbom-list/components/PackagesCount.tsx b/client/src/app/pages/sbom-list/components/PackagesCount.tsx deleted file mode 100644 index 8d4876d2..00000000 --- a/client/src/app/pages/sbom-list/components/PackagesCount.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import React from "react"; - -import { useFetchPackagesBySbomId } from "@app/queries/packages"; - -export interface IPackagesCountProps { - sbomId: string; -} - -export const PackagesCount: React.FC = ({ sbomId }) => { - const { - result: { total }, - } = useFetchPackagesBySbomId(sbomId, { - page: { pageNumber: 1, itemsPerPage: 1 }, - }); - - return <>{total}; -}; diff --git a/client/src/app/pages/sbom-list/sbom-table.tsx b/client/src/app/pages/sbom-list/sbom-table.tsx index 120dd7b3..10f48798 100644 --- a/client/src/app/pages/sbom-list/sbom-table.tsx +++ b/client/src/app/pages/sbom-list/sbom-table.tsx @@ -20,7 +20,6 @@ import { import { useDownload } from "@app/hooks/domain-controls/useDownload"; import { formatDate } from "@app/utils/utils"; -import { PackagesCount } from "./components/PackagesCount"; import { SBOMVulnerabilities } from "./components/SbomVulnerabilities"; import { SbomSearchContext } from "./sbom-context"; @@ -105,7 +104,7 @@ export const SbomTable: React.FC = ({}) => { {formatDate(item.published)} - + {item.number_of_packages}