Skip to content

Commit

Permalink
Update reducer name
Browse files Browse the repository at this point in the history
  • Loading branch information
reekitconcept committed Jan 17, 2025
1 parent 8332b5d commit 8ff8eac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/volto-solr/src/reducers/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import solrsearch from './solrsearch/solrsearch';
import solrSearchSuggestions from './solrsearch/solrSearchSuggestions';
import solrsearchsuggestions from './solrsearch/solrSearchSuggestions';
import { defineMessages } from 'react-intl';

// needed to add as overrides are not parsed by i18n
Expand Down Expand Up @@ -35,7 +35,7 @@ defineMessages({

const reducers = {
solrsearch,
solrSearchSuggestions,
solrsearchsuggestions,
};

export default reducers;
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ const initialState = {
subrequests: {},
};

export default function searchSuggestions(state = initialState, action = {}) {
export default function solrSearchSuggestions(
state = initialState,
action = {},
) {
switch (action.type) {
case `${SOLR_SEARCH_SUGGESTIONS}_PENDING`:
return {
Expand Down

0 comments on commit 8ff8eac

Please sign in to comment.