Skip to content

Commit 63bab76

Browse files
committed
changed param name
1 parent 06b9815 commit 63bab76

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

  • src
    • app/(loading-group)/[organizationSlug]/projects/[projectSlug]/assets/[assetSlug]/refs/[assetVersionSlug]/dependency-risks/[vulnId]
    • types/api

src/app/(loading-group)/[organizationSlug]/projects/[projectSlug]/assets/[assetSlug]/refs/[assetVersionSlug]/dependency-risks/[vulnId]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ const Index: FunctionComponent = () => {
432432
// Fetch VEX rules for the current CVE to show FP edges in the graph
433433
const { data: vexRulesData, mutate: mutateVexRules } = useSWR<VexRule[]>(
434434
vuln
435-
? `/organizations/${activeOrg.slug}/projects/${project?.slug}/assets/${asset?.slug}/refs/${assetVersion?.slug}/vex-rules/?vulnId=${encodeURIComponent(vuln.id)}`
435+
? `/organizations/${activeOrg.slug}/projects/${project?.slug}/assets/${asset?.slug}/refs/${assetVersion?.slug}/vex-rules/?dependencyVulnId=${encodeURIComponent(vuln.id)}`
436436
: null,
437437
fetcher,
438438
);

src/types/api/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ interface BaseVulnEventDTO {
250250
createdAt: string;
251251
id: string;
252252
vulnId: string;
253-
vulnType: "dependencyVuln" | "firstPartyVuln";
253+
vulnType: "dependencyVuln" | "firstPartyVuln" | "licenseRisk";
254254
justification: string;
255255
mechanicalJustification: string;
256256
vulnerabilityName: string | null;

0 commit comments

Comments
 (0)