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