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

@ -22,8 +22,8 @@ interface CompareHistoryModalProps {
const CompareHistoryModal: React.FC<BaseModalProps & CompareHistoryModalProps> = ({ onClose, statusId }) => {
const dispatch = useAppDispatch();
const loading = useAppSelector(state => state.history.getIn([statusId, 'loading']));
const versions = useAppSelector(state => state.history.get(statusId)?.items);
const loading = useAppSelector(state => state.history[statusId]?.loading);
const versions = useAppSelector(state => state.history[statusId]?.items);
const status = useAppSelector(state => state.statuses[statusId]);