remove forward slash from search query when selecting

This commit is contained in:
Sean Yesmunt 2019-12-20 12:05:35 -05:00
parent 3779c05888
commit 0db20834f9
3 changed files with 4 additions and 6 deletions

2
dist/bundle.es.js vendored
View file

@ -2202,7 +2202,7 @@ const makeSelectRecommendedContentForUri = uri => reselect.createSelector(makeSe
return;
}
const searchQuery = getSearchQueryString(title, undefined, undefined, {
const searchQuery = getSearchQueryString(title.replace(/\//, ' '), undefined, undefined, {
related_to: claim.claim_id
});

View file

@ -156,8 +156,6 @@ export const doSearch = (
});
};
export const doSearchForRelatedContent = (query: string) => {};
export const doFocusSearchInput = () => (dispatch: Dispatch) =>
dispatch({
type: ACTIONS.SEARCH_FOCUS,

View file

@ -510,7 +510,7 @@ export const makeSelectRecommendedContentForUri = (uri: string) =>
return;
}
const searchQuery = getSearchQueryString(title, undefined, undefined, {
const searchQuery = getSearchQueryString(title.replace(/\//, ' '), undefined, undefined, {
related_to: claim.claim_id,
});