diff --git a/app/institutions/dashboard/-components/object-list/component.ts b/app/institutions/dashboard/-components/object-list/component.ts index 983742d88d..95f01b1d7f 100644 --- a/app/institutions/dashboard/-components/object-list/component.ts +++ b/app/institutions/dashboard/-components/object-list/component.ts @@ -86,6 +86,16 @@ export default class InstitutionalObjectList extends Component { const cardSearchFilterKey = `cardSearchFilter[${filterKey}]`; + // check if filterValue is an object, for boolean filters + if (typeof filterValue === 'object' && !Array.isArray(filterValue)) { + Object.entries(filterValue).forEach(([nestedFilterKey, nestedFilterValue]) => { + searchUrl.searchParams.append( + `${cardSearchFilterKey}[${nestedFilterKey}]`, + (nestedFilterValue as boolean).toString(), + ); + }); + return; + } searchUrl.searchParams.set(cardSearchFilterKey, filterValue.toString()); }); } else {