use query from navigation path instead of active search query for search

This commit is contained in:
Sean Yesmunt 2018-06-22 15:22:28 -04:00
parent 42413cffff
commit 1a9c2c3d17

View file

@ -1,6 +1,6 @@
import { connect } from 'react-redux';
import * as settings from 'constants/settings';
import { selectIsSearching, selectSearchValue, doUpdateSearchQuery } from 'lbry-redux';
import { selectIsSearching, makeSelectCurrentParam, doUpdateSearchQuery } from 'lbry-redux';
import { doSetClientSetting } from 'redux/actions/settings';
import { doNavigate } from 'redux/actions/navigation';
import { makeSelectClientSetting } from 'redux/selectors/settings';
@ -8,7 +8,7 @@ import SearchPage from './view';
const select = state => ({
isSearching: selectIsSearching(state),
query: selectSearchValue(state),
query: makeSelectCurrentParam('query')(state),
showUnavailable: makeSelectClientSetting(settings.SHOW_UNAVAILABLE)(state),
resultCount: makeSelectClientSetting(settings.RESULT_COUNT)(state),
});