pl-fe: Migrate some reducers off immutable
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user