pl-fe: fixes after migrating off immutablejs
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
2ce2f96b16
commit
8dcddc9767
2 changed files with 2 additions and 2 deletions
|
@ -619,7 +619,7 @@ const fetchComposeSuggestionsTags = (dispatch: AppDispatch, getState: () => Root
|
|||
const { trends } = state.auth.client.features;
|
||||
|
||||
if (trends) {
|
||||
const currentTrends = state.trends.items.toArray();
|
||||
const currentTrends = state.trends.items;
|
||||
|
||||
return dispatch(updateSuggestionTags(composeId, token, currentTrends));
|
||||
}
|
||||
|
|
|
@ -93,7 +93,7 @@ const setFilter = (value: string, filterType: SearchFilter) =>
|
|||
const expandSearch = (type: SearchFilter) => (dispatch: AppDispatch, getState: () => RootState) => {
|
||||
if (type === 'links') return;
|
||||
const value = getState().search.submittedValue;
|
||||
const offset = getState().search.results[type].size;
|
||||
const offset = getState().search.results[type].length;
|
||||
const accountId = getState().search.accountId;
|
||||
|
||||
dispatch(expandSearchRequest(type));
|
||||
|
|
Loading…
Reference in a new issue