diff --git a/dist/bundle.es.js b/dist/bundle.es.js index c6d4c90..035f91c 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -3924,7 +3924,7 @@ const doUpdateSearchQuery = (query, shouldSkipSuggestions) => dispatch => { }; const doSearch = (rawQuery, size, // only pass in if you don't want to use the users setting (ex: related content) -from, isBackgroundSearch = false, options = {}) => (dispatch, getState) => { +from, isBackgroundSearch = false, options = {}, resolveResults = true) => (dispatch, getState) => { const query = rawQuery.replace(/^lbry:\/\//i, '').replace(/\//, ' '); if (!query) { @@ -3973,7 +3973,9 @@ from, isBackgroundSearch = false, options = {}) => (dispatch, getState) => { } const url = buildURI(urlObj); - actions.push(doResolveUri(url)); + if (resolveResults) { + actions.push(doResolveUri(url)); + } uris.push(url); } }); diff --git a/src/redux/actions/search.js b/src/redux/actions/search.js index 5dff3b2..3cd3a47 100644 --- a/src/redux/actions/search.js +++ b/src/redux/actions/search.js @@ -81,7 +81,8 @@ export const doSearch = ( isBackgroundSearch: boolean = false, options: { related_to?: string, - } = {} + } = {}, + resolveResults: boolean = true ) => (dispatch: Dispatch, getState: GetState) => { const query = rawQuery.replace(/^lbry:\/\//i, '').replace(/\//, ' '); @@ -135,7 +136,9 @@ export const doSearch = ( } const url = buildURI(urlObj); - actions.push(doResolveUri(url)); + if (resolveResults) { + actions.push(doResolveUri(url)); + } uris.push(url); } }); diff --git a/src/redux/selectors/claims.js b/src/redux/selectors/claims.js index 8bf2d31..e825188 100644 --- a/src/redux/selectors/claims.js +++ b/src/redux/selectors/claims.js @@ -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; }