pl-fe: Fix thread selector

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-10-27 14:44:09 +01:00
parent 7b435ff3c9
commit a44dd71be8

View file

@ -82,7 +82,7 @@ const makeGetThread = () => {
const getDescendantsIds = makeGetDescendantsIds();
return createSelector([
(state: RootState, statusId: string) => getAncestorsIds(state, state.contexts.inReplyTos.get(statusId)),
(state: RootState, statusId: string) => getAncestorsIds(state, statusId),
(state: RootState, statusId: string) => getDescendantsIds(state, statusId),
(_, statusId: string) => statusId,
],