remove forward slash from search query when selecting
This commit is contained in:
parent
3779c05888
commit
0db20834f9
3 changed files with 4 additions and 6 deletions
2
dist/bundle.es.js
vendored
2
dist/bundle.es.js
vendored
|
@ -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
|
||||
});
|
||||
|
||||
|
|
|
@ -156,8 +156,6 @@ export const doSearch = (
|
|||
});
|
||||
};
|
||||
|
||||
export const doSearchForRelatedContent = (query: string) => {};
|
||||
|
||||
export const doFocusSearchInput = () => (dispatch: Dispatch) =>
|
||||
dispatch({
|
||||
type: ACTIONS.SEARCH_FOCUS,
|
||||
|
|
|
@ -260,8 +260,8 @@ export const makeSelectDateForUri = (uri: string) =>
|
|||
(claim.value.release_time
|
||||
? claim.value.release_time * 1000
|
||||
: claim.meta && claim.meta.creation_timestamp
|
||||
? claim.meta.creation_timestamp * 1000
|
||||
: null);
|
||||
? claim.meta.creation_timestamp * 1000
|
||||
: null);
|
||||
if (!timestamp) {
|
||||
return undefined;
|
||||
}
|
||||
|
@ -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,
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue