Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…orgen.ts into develop
  • Loading branch information
navid-kalaei committed Apr 18, 2024
2 parents 27b4566 + b0c6c81 commit bf2cb91
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
9 changes: 8 additions & 1 deletion components/SearchEventsListener.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const SearchEventsListener: FC = () => {
start_min: startMinParam,
start_max: startMaxParam,
end_min: endMinParam,
orgTag: orgTagParam,
} = query

const { slug } = query
Expand Down Expand Up @@ -84,7 +85,8 @@ const SearchEventsListener: FC = () => {
limit = limit !== 0 ? limit : undefined

const typeNames = getTypeNamesFromRouterOrKnownCategoryNamesIfEmpty(router)


const orgTag: string = convertQueryParamToString(orgTagParam)
const fixedTags: string[] = convertQueryParamToArray(fixedTagsParam)
const tags: string[] = convertQueryParamToArray(tagsParam)
const compoundTags = [...fixedTags, ...tags]
Expand All @@ -101,6 +103,11 @@ const SearchEventsListener: FC = () => {
categories: toString(entryCategories),
limit: limit,
}

if (orgTag !== '') {
searchEntriesRequestDTO.org_tag = orgTag
}

dispatch(fetchEntries(searchEntriesRequestDTO))
} else {
dispatch(emptyEntries())
Expand Down
3 changes: 2 additions & 1 deletion locales/en/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,8 @@
"loginForPilots": "Login",
"contact": "Contact",
"aboutUs": "About",
"privacy": "Privacy"
"privacy": "Privacy",
"UnsubscribeMailnotification": "Unsubscirbe Mailnotification"
},
"mapColorMode": {
"colorful": "Colorful",
Expand Down
3 changes: 2 additions & 1 deletion locales/fr/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,8 @@
"loginForPilots": "Login",
"contact": "Contact",
"aboutUs": "About",
"privacy": "Privacy"
"privacy": "Privacy",
"UnsubscribeMailnotification": "Unsubscirbe Mailnotification"
},
"mapColorMode": {
"colorful": "Colorée",
Expand Down
3 changes: 2 additions & 1 deletion locales/it/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,8 @@
"loginForPilots": "Login",
"contact": "Contact",
"aboutUs": "About",
"privacy": "Privacy"
"privacy": "Privacy",
"UnsubscribeMailnotification": "Unsubscirbe Mailnotification"
},
"mapColorMode": {
"colorful": "Colorful",
Expand Down
3 changes: 2 additions & 1 deletion locales/nl/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,8 @@
"loginForPilots": "Login",
"contact": "Contact",
"aboutUs": "About",
"privacy": "Privacy"
"privacy": "Privacy",
"UnsubscribeMailnotification": "Unsubscirbe Mailnotification"
},
"mapColorMode": {
"colorful": "Colorful",
Expand Down

0 comments on commit bf2cb91

Please sign in to comment.