Skip to content

Commit

Permalink
Remove fetchUserRevisions from StudentExercise
Browse files Browse the repository at this point in the history
  • Loading branch information
ragesoss committed Dec 20, 2024
1 parent 2f658ef commit 759e1fc
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import createReactClass from 'create-react-class';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { setUploadFilters } from '~/app/assets/javascripts/actions/uploads_actions';
import { fetchUserRevisions } from '~/app/assets/javascripts/actions/user_revisions_actions';
import { fetchTrainingStatus } from '~/app/assets/javascripts/actions/training_status_actions';

// Components
Expand All @@ -23,7 +22,6 @@ const Student = createReactClass({
course: PropTypes.object.isRequired,
current_user: PropTypes.object,
editable: PropTypes.bool,
fetchUserRevisions: PropTypes.func.isRequired,
fetchTrainingStatus: PropTypes.func.isRequired,
isOpen: PropTypes.bool,
minimalView: PropTypes.bool,
Expand All @@ -43,7 +41,6 @@ const Student = createReactClass({
openDrawer() {
if (!this.props.isOpen) {
const { course, student } = this.props;
this.props.fetchUserRevisions(course.id, student.id);
this.props.fetchTrainingStatus(student.id, course.id);
this.props.fetchExercises(course.id, student.id);
}
Expand Down Expand Up @@ -75,7 +72,6 @@ const Student = createReactClass({

const mapDispatchToProps = {
setUploadFilters,
fetchUserRevisions,
fetchTrainingStatus,
fetchExercises: fetchTrainingModuleExercisesByUser
};
Expand Down

0 comments on commit 759e1fc

Please sign in to comment.