pl-fe: Migrate some reducers off immutable

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-11-08 23:37:45 +01:00
parent ea81f788c7
commit d4e6f9f4cc
6 changed files with 84 additions and 61 deletions

View File

@ -11,7 +11,7 @@ const HISTORY_FETCH_FAIL = 'HISTORY_FETCH_FAIL' as const;
const fetchHistory = (statusId: string) =>
(dispatch: AppDispatch, getState: () => RootState) => {
const loading = getState().history.getIn([statusId, 'loading']);
const loading = getState().history[statusId]?.loading;
if (loading) return;