Skip to content

Commit

Permalink
fix: sbom-list page -> avoid fetching packages endpoint (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosthe19916 authored Jan 10, 2025
1 parent ffcfd94 commit eb48002
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
17 changes: 0 additions & 17 deletions client/src/app/pages/sbom-list/components/PackagesCount.tsx

This file was deleted.

3 changes: 1 addition & 2 deletions client/src/app/pages/sbom-list/sbom-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -105,7 +104,7 @@ export const SbomTable: React.FC = ({}) => {
{formatDate(item.published)}
</Td>
<Td width={10} {...getTdProps({ columnKey: "packages" })}>
<PackagesCount sbomId={item.id} />
{item.number_of_packages}
</Td>
<Td
width={20}
Expand Down

0 comments on commit eb48002

Please sign in to comment.