Skip to content

Commit 2efcb79

Browse files
🐛 Dashboard does not load data (#405)
Signed-off-by: Carlos Feria <2582866+carlosthe19916@users.noreply.github.com>
1 parent 4c94337 commit 2efcb79

File tree

2 files changed

+12
-21
lines changed

2 files changed

+12
-21
lines changed

client/src/app/pages/home/components/MonitoringSection.tsx

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,10 @@ export const MonitoringSection: React.FC = () => {
6161
result: { data: barchartSboms, total: totalSboms },
6262
isFetching: isFetchingBarchartSboms,
6363
fetchError: fetchErrorBarchartSboms,
64-
} = useFetchSBOMs(
65-
{
66-
page: { pageNumber: 1, itemsPerPage: 10 },
67-
sort: { field: "ingested", direction: "desc" },
68-
},
69-
true
70-
);
64+
} = useFetchSBOMs({
65+
page: { pageNumber: 1, itemsPerPage: 10 },
66+
sort: { field: "ingested", direction: "desc" },
67+
});
7168

7269
const {
7370
data: barchartSbomsVulnerabilities,
@@ -89,13 +86,10 @@ export const MonitoringSection: React.FC = () => {
8986
result: { data: advisories, total: totalAdvisories },
9087
isFetching: isFetchingAdvisories,
9188
fetchError: fetchErrorAdvisories,
92-
} = useFetchAdvisories(
93-
{
94-
page: { pageNumber: 1, itemsPerPage: 10 },
95-
sort: { field: "ingested", direction: "desc" },
96-
},
97-
true
98-
);
89+
} = useFetchAdvisories({
90+
page: { pageNumber: 1, itemsPerPage: 10 },
91+
sort: { field: "ingested", direction: "desc" },
92+
});
9993

10094
return (
10195
<Card>

client/src/app/pages/home/components/WatchedSbom.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,10 @@ export const WatchedSbom: React.FC<WatchedSbomProps> = ({
6464
result: { data: sbomOptions },
6565
isFetching: isFetchingSbomOptions,
6666
fetchError: fetchErrorSbomOptions,
67-
} = useFetchSBOMs(
68-
{
69-
filters: [{ field: "", operator: "~", value: debouncedInputValue }],
70-
page: { pageNumber: 1, itemsPerPage: 10 },
71-
},
72-
true
73-
);
67+
} = useFetchSBOMs({
68+
filters: [{ field: "", operator: "~", value: debouncedInputValue }],
69+
page: { pageNumber: 1, itemsPerPage: 10 },
70+
});
7471

7572
const onSelectItem = (
7673
_event: React.MouseEvent<Element, MouseEvent> | undefined,

0 commit comments

Comments
 (0)