use query from navigation path instead of active search query for search
This commit is contained in:
parent
42413cffff
commit
1a9c2c3d17
1 changed files with 2 additions and 2 deletions
|
@ -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),
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue