Convert the polls reducer to plain JS (#33263)

This commit is contained in:
Renaud Chaput 2025-03-29 21:17:27 +01:00 committed by GitHub
parent 04a9252a93
commit 1bc28709cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 89 additions and 131 deletions

View file

@ -71,7 +71,7 @@ export function importFetchedStatuses(statuses) {
}
if (status.poll?.id) {
pushUnique(polls, createPollFromServerJSON(status.poll, getState().polls.get(status.poll.id)));
pushUnique(polls, createPollFromServerJSON(status.poll, getState().polls[status.poll.id]));
}
if (status.card) {

View file

@ -15,7 +15,7 @@ export const importFetchedPoll = createAppAsyncThunk(
dispatch(
importPolls({
polls: [createPollFromServerJSON(poll, getState().polls.get(poll.id))],
polls: [createPollFromServerJSON(poll, getState().polls[poll.id])],
}),
);
},