Skip to content

Commit 6f03ca3

Browse files
authored
fix: No patches shown if no package name was selected
1 parent 9c7bbd9 commit 6f03ca3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/routes/patches/+page.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
keys: ['name', 'description', 'compatiblePackages.name', 'compatiblePackages.versions']
4747
},
4848
additionalFilter: (patch: Patch, pkg: string): boolean => {
49+
if (!pkg) return true;
4950
return (
5051
patch.compatiblePackages?.some(
5152
(compatiblePackage: CompatiblePackage) =>

0 commit comments

Comments
 (0)