Skip to content

Commit

Permalink
fix: added check for subsite to path in venue query for events search…
Browse files Browse the repository at this point in the history
… filter (#718)
  • Loading branch information
sabrina-bongiovanni authored Jul 12, 2024
1 parent fecf6c2 commit cd96ee0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@

- Ora il titolo, sottotitolo, favicon, logo e logo del footer sono editabili dal pannello di controllo del Sito. Se non impostati, verranno usati quelli definiti dagli sviluppatori.

### Fix

- Ripristinato il funzionamento del filtro luogo nella ricerca eventi.

## Versione 11.16.0 (10/07/2024)

### Migliorie
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ const DefaultFilters = () => {
const intl = useIntl();
moment.locale(intl.locale);
const subsite = useSelector((state) => state.subsite?.data);
const isSubsiteValid = subsite && Object.keys(subsite).length > 0;
const path = isSubsiteValid ? flattenToAppURL(subsite['@id']) : '/';

return {
text_filter: {
Expand Down Expand Up @@ -68,7 +70,7 @@ const DefaultFilters = () => {
isSearchable: true,
options: {
dispatch: {
path: subsite ? flattenToAppURL(subsite['@id']) : '/',
path: path,
portal_types: ['Venue'],
fullobjects: 0,
b_size: 10000,
Expand Down

0 comments on commit cd96ee0

Please sign in to comment.