= ({
rowIndex={rowIndex}
>
-
+
{item?.sbom?.name}
|
- {item.sbom?.described_by[0]?.version}
+ {item.sbom?.version}
|
-
+
|
= ({
{item?.sbom?.number_of_packages}
|
- {item?.sbom?.authors}
+ {item?.sbom?.authors.join(", ")}
|
new Object(),
name: "A name here",
},
- summary: {
- total: 5,
- status: {
- affected: 3,
- fixed: 2,
- not_affected: 0,
- known_not_affected: 0,
+ data: {
+ summary: {
+ total: 5,
+ sbomStatus: {
+ affected: 3,
+ fixed: 2,
+ not_affected: 0,
+ known_not_affected: 0,
+ },
},
+ sboms: [],
},
- sboms: [],
});
},
parameters: {
@@ -202,16 +204,18 @@ export const PopulatedState: Story = {
toJSON: () => new Object(),
name: "A name here",
},
- summary: {
- total: 0,
- status: {
- affected: 0,
- fixed: 0,
- not_affected: 0,
- known_not_affected: 0,
+ data: {
+ summary: {
+ total: 0,
+ sbomStatus: {
+ affected: 0,
+ fixed: 0,
+ not_affected: 0,
+ known_not_affected: 0,
+ },
},
+ sboms: [],
},
- sboms: [],
});
},
parameters: {
diff --git a/client/src/app/pages/vulnerability-list/components/SbomsCount.tsx b/client/src/app/pages/vulnerability-list/components/SbomsCount.tsx
index 35ae9049..da540dad 100644
--- a/client/src/app/pages/vulnerability-list/components/SbomsCount.tsx
+++ b/client/src/app/pages/vulnerability-list/components/SbomsCount.tsx
@@ -10,7 +10,7 @@ interface SbomsCountProps {
}
export const SbomsCount: React.FC = ({ vulnerabilityId }) => {
- const { summary, isFetching, fetchError } =
+ const { data, isFetching, fetchError } =
useSbomsOfVulnerability(vulnerabilityId);
return (
@@ -20,7 +20,7 @@ export const SbomsCount: React.FC = ({ vulnerabilityId }) => {
isFetchingState={}
fetchErrorState={}
>
- {summary.status.affected}
+ {data.summary.sbomStatus.affected}
);
};
|