pl-fe: fixes after migrating off immutablejs

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-10-05 23:15:46 +02:00
parent 2ce2f96b16
commit 8dcddc9767
2 changed files with 2 additions and 2 deletions

View file

@ -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));
}

View file

@ -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));