pl-fe: fix wrong type
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
81149a891f
commit
cdd87d89f8
1 changed files with 3 additions and 8 deletions
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue