Skip to content

Commit f30d072

Browse files
authored
fix: Severity filter not working in case of empty ecosystem value (#188)
Fixes #186 ![image](https://github.com/user-attachments/assets/d03761db-dcf5-4bfa-b6ce-12cb8ef23f5b)
1 parent c3a37a1 commit f30d072

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fetch-alerts.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const fetchAlerts = async (
2121
repo: repositoryName,
2222
state: 'open',
2323
severity,
24-
ecosystem,
24+
ecosystem: ecosystem.length > 0 ? ecosystem : undefined,
2525
per_page: count,
2626
})
2727
const alerts: Alert[] = response.data.map((dependabotAlert) =>

0 commit comments

Comments
 (0)