From 8dcddc9767effd218241380eaf44b14f3829e9fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sat, 5 Oct 2024 23:15:46 +0200 Subject: [PATCH] pl-fe: fixes after migrating off immutablejs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-fe/src/actions/compose.ts | 2 +- packages/pl-fe/src/actions/search.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/pl-fe/src/actions/compose.ts b/packages/pl-fe/src/actions/compose.ts index 64d6d643f..a3b92ee30 100644 --- a/packages/pl-fe/src/actions/compose.ts +++ b/packages/pl-fe/src/actions/compose.ts @@ -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)); } diff --git a/packages/pl-fe/src/actions/search.ts b/packages/pl-fe/src/actions/search.ts index 058b9e196..d97bac2ef 100644 --- a/packages/pl-fe/src/actions/search.ts +++ b/packages/pl-fe/src/actions/search.ts @@ -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));