Make translated challenge titles searchable
This commit is contained in:
@@ -11,7 +11,8 @@ import {
|
||||
} from './actions';
|
||||
import {
|
||||
createMapUi,
|
||||
filterComingSoonBetaFromEntities
|
||||
filterComingSoonBetaFromEntities,
|
||||
searchableChallengeTitles
|
||||
} from '../utils';
|
||||
import {
|
||||
delayedRedirect,
|
||||
@@ -69,12 +70,18 @@ export default function fetchChallengesSaga(action$, getState, { services }) {
|
||||
entities,
|
||||
isDev
|
||||
);
|
||||
const searchNames = searchableChallengeTitles(filteredEntities);
|
||||
return Observable.of(
|
||||
fetchChallengesCompleted(
|
||||
createNameIdMap(filteredEntities),
|
||||
result
|
||||
),
|
||||
initMap(createMapUi(filteredEntities, result)),
|
||||
initMap(
|
||||
createMapUi(
|
||||
filteredEntities,
|
||||
result,
|
||||
searchNames
|
||||
)),
|
||||
);
|
||||
})
|
||||
.catch(createErrorObservable);
|
||||
|
Reference in New Issue
Block a user