Common components refactor #1
2 changed files with 3 additions and 5 deletions
|
@ -3777,8 +3777,6 @@ var _search2 = __webpack_require__(13);
|
||||||
|
|
||||||
var _batchActions = __webpack_require__(9);
|
var _batchActions = __webpack_require__(9);
|
||||||
|
|
||||||
var _batchActions2 = _interopRequireDefault(_batchActions);
|
|
||||||
|
|
||||||
var _handleFetch = __webpack_require__(26);
|
var _handleFetch = __webpack_require__(26);
|
||||||
|
|
||||||
var _handleFetch2 = _interopRequireDefault(_handleFetch);
|
var _handleFetch2 = _interopRequireDefault(_handleFetch);
|
||||||
|
@ -3839,7 +3837,7 @@ var doSearch = exports.doSearch = function doSearch(rawQuery) {
|
||||||
uris: uris
|
uris: uris
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
dispatch(_batchActions2.default.apply(undefined, actions));
|
dispatch(_batchActions.batchActions.apply(undefined, actions));
|
||||||
}).catch(function () {
|
}).catch(function () {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: ACTIONS.SEARCH_FAIL
|
type: ACTIONS.SEARCH_FAIL
|
||||||
|
|
|
@ -4,7 +4,7 @@ import * as SEARCH_TYPES from 'constants/search';
|
||||||
import { normalizeURI, buildURI, parseURI } from 'lbryURI';
|
import { normalizeURI, buildURI, parseURI } from 'lbryURI';
|
||||||
import { doResolveUri } from 'redux/actions/claims';
|
import { doResolveUri } from 'redux/actions/claims';
|
||||||
import { makeSelectSearchUris } from 'redux/selectors/search';
|
import { makeSelectSearchUris } from 'redux/selectors/search';
|
||||||
import batchActions from 'util/batchActions';
|
import { batchActions } from 'util/batchActions';
|
||||||
import handleFetchResponse from 'util/handle-fetch';
|
import handleFetchResponse from 'util/handle-fetch';
|
||||||
|
|
||||||
export const doSearch = rawQuery => (dispatch, getState) => {
|
export const doSearch = rawQuery => (dispatch, getState) => {
|
||||||
|
@ -43,7 +43,7 @@ export const doSearch = rawQuery => (dispatch, getState) => {
|
||||||
.then(data => {
|
.then(data => {
|
||||||
const uris = [];
|
const uris = [];
|
||||||
const actions = [];
|
const actions = [];
|
||||||
|
|
||||||
data.forEach(result => {
|
data.forEach(result => {
|
||||||
const uri = buildURI({
|
const uri = buildURI({
|
||||||
claimName: result.name,
|
claimName: result.name,
|
||||||
|
|
Loading…
Reference in a new issue