Skip to content

Commit

Permalink
Agenda search results fix (#683)
Browse files Browse the repository at this point in the history
  • Loading branch information
thecalcc authored Dec 7, 2023
1 parent c895356 commit 73a6fea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions assets/search/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {getNavigationUrlParam, getSearchParams} from './utils';
import {getLocations, getMapSource} from 'maps/utils';

import {closeModal} from 'actions';
import {fetchItems, setShareItems} from 'wire/actions';
import {setShareItems} from 'wire/actions';
import {createOrUpdateTopic, fetchUser} from 'user-profile/actions';

import {multiSelectTopicsConfigSelector} from 'ui/selectors';
Expand Down Expand Up @@ -140,7 +140,6 @@ export function toggleFilter(key: any, value: any, single?: any) {
}

dispatch(setSearchFilters(currentFilters));
dispatch(fetchItems());
updateRouteParams(
{filter: currentFilters},
state,
Expand All @@ -164,7 +163,6 @@ export function setCreatedFilter(filter: any) {
);

dispatch(setSearchCreated(created));
dispatch(fetchItems());
updateRouteParams(
{created},
state,
Expand Down
4 changes: 2 additions & 2 deletions assets/search/components/SearchResultsBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ class SearchResultsBarComponent extends React.Component<any, any> {
toggleAdvancedSearchField={this.props.toggleAdvancedSearchField}
setQuery={this.props.setQuery}
setAdvancedSearchKeywords={this.props.setAdvancedSearchKeywords}
toggleFilter={this.props.toggleFilter}
setCreatedFilter={this.props.setCreatedFilter}
toggleFilter={this.toggleFilter}
setCreatedFilter={this.setCreatedFilter}
resetFilter={this.resetFilter}
clearAdvancedSearchParams={this.props.clearAdvancedSearchParams}
deselectMyTopic={this.props.deselectMyTopic}
Expand Down

0 comments on commit 73a6fea

Please sign in to comment.