Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kahboom committed Oct 7, 2024
1 parent 8a3aabf commit 58f5893
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { useFetchVulnerabilities } from "@app/queries/vulnerabilities";
interface IVulnerabilitySearchContext {
tableControls: ITableControls<
VulnerabilitySummary,
"packages" | "identifier" | "title" | "severity" | "sboms" | "advisories",
"packages" | "identifier" | "title" | "severity" | "sboms",
never,
"" | "average_severity",
string
Expand Down Expand Up @@ -49,7 +49,6 @@ export const VulnerabilitySearchProvider: React.FunctionComponent<
severity: "CVSS",
packages: "Packages",
sboms: "SBOMs",
advisories: "Vulnerabilities",
},
isPaginationEnabled: true,
isSortEnabled: true,
Expand Down
20 changes: 0 additions & 20 deletions client/src/app/pages/vulnerability-list/vulnerability-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ export const VulnerabilityTable: React.FC = () => {
<Th {...getThProps({ columnKey: "severity" })} />
<Th {...getThProps({ columnKey: "packages" })} />
<Th {...getThProps({ columnKey: "sboms" })} />
<Th {...getThProps({ columnKey: "advisories" })} />
</TableHeaderContentWithControls>
</Tr>
</Thead>
Expand Down Expand Up @@ -164,17 +163,6 @@ export const VulnerabilityTable: React.FC = () => {
>
SBOMs
</Td>
<Td
width={10}
{...getTdProps({
columnKey: "advisories",
isCompoundExpandToggle: true,
item: item,
rowIndex,
})}
>
Advisories
</Td>
<Td isActionCell>
<ActionsColumn
items={[
Expand Down Expand Up @@ -289,14 +277,6 @@ export const VulnerabilityTable: React.FC = () => {
/>
</>
) : null}
{isCellExpanded(item, "advisories") ? (
<>
<AdvisoriesByVulnerability
variant="compact"
advisories={item.advisories}
/>
</>
) : null}
</div>
</ExpandableRowContent>
</Td>
Expand Down

0 comments on commit 58f5893

Please sign in to comment.