We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 180b6bf commit ab2b5c7Copy full SHA for ab2b5c7
src/routes/_libraries/partners.tsx
@@ -273,12 +273,8 @@ export default function RouteComp() {
273
274
// Library filter
275
if (search.libraries && search.libraries.length > 0) {
276
- // Include partners with no specific libraries (general partners)
277
- if (!partner.libraries || partner.libraries.length === 0) {
278
- return true
279
- }
280
// Include partners that match any of the selected libraries
281
- return partner.libraries.some((lib) =>
+ return partner.libraries?.some((lib) =>
282
search.libraries!.includes(lib as Library['id'])
283
)
284
}
0 commit comments