frontend-rw #1

Merged
marcin merged 347 commits from frontend-rw into develop 2024-12-05 15:32:18 -08:00
Showing only changes of commit cdd87d89f8 - Show all commits

View file

@ -1,6 +1,3 @@
import {
Map as ImmutableMap,
} from 'immutable';
import { create } from 'mutative'; import { create } from 'mutative';
import { STATUS_IMPORT, STATUSES_IMPORT, type ImporterAction } from 'pl-fe/actions/importer'; import { STATUS_IMPORT, STATUSES_IMPORT, type ImporterAction } from 'pl-fe/actions/importer';
@ -143,13 +140,11 @@ const filterContexts = (
state: State, state: State,
relationship: { id: string }, relationship: { id: string },
/** The entire statuses map from the store. */ /** The entire statuses map from the store. */
statuses: ImmutableMap<string, Status>, statuses: Record<string, Status>,
) => { ) => {
const ownedStatusIds = statuses const ownedStatusIds = Object.values(statuses)
.filter(status => status.account.id === relationship.id) .filter(status => status.account.id === relationship.id)
.map(status => status.id) .map(status => status.id);
.toList()
.toArray();
deleteStatuses(state, ownedStatusIds); deleteStatuses(state, ownedStatusIds);
}; };