Commit af398040 authored by Florent Chehab's avatar Florent Chehab
Browse files

done

parent f60497bc
Pipeline #40481 passed with stages
in 3 minutes and 21 seconds
......@@ -160,7 +160,7 @@ class LoadUniversityEx(LoadGeneric):
CourseFeedback.objects.update_or_create(
course=course1,
defaults=dict(
# language=Language.objects.first(),
language=Language.objects.first(),
comment="Trop bien",
adequation=5,
working_dose=4,
......
......@@ -91,7 +91,6 @@ class CustomComponentForAPI extends Component {
// Finally we try to restore the previous RequestParams objects
// So that we don't refetch the same data twice.
this._apiAutoPropNames.forEach(propName => {
console.log(propName);
this._lastRequestParamsObjs[propName] = props[propName].readSucceeded.requestParams;
});
}
......
......@@ -9,6 +9,7 @@ import TableRow from "@material-ui/core/TableRow";
import PropTypes from "prop-types";
import compose from "recompose/compose";
import withStyles from "@material-ui/core/styles/withStyles";
import {getLatestReadDataFromStore} from "../../../redux/api/utils";
const styles = theme => ({
......@@ -24,7 +25,7 @@ class CourseFeedback extends Component {
render() {
const {classes, exchangeCourses} = this.props;
const languages = this.getLatestReadDataFromStore("languagesAll");
const languages = getLatestReadDataFromStore("languagesAll");
return (
<>
......@@ -47,7 +48,10 @@ class CourseFeedback extends Component {
<TableCell>{course.nb_credit}</TableCell>
<TableCell>
{
course.course_feedback.language ? languages.find(lang => lang.id == course.course_feedback.language).name : <span>Non spécifié</span>
course.course_feedback.language ?
languages.find(lang => lang.id === course.course_feedback.language).name
:
<span>Non spécifié</span>
}
</TableCell>
<TableCell>{course.course_feedback.adequation}</TableCell>
......@@ -67,7 +71,6 @@ class CourseFeedback extends Component {
CourseFeedback.propTypes = {
classes: PropTypes.object.isRequired,
exchangeCourses: PropTypes.array.isRequired,
languages: PropTypes.object.isRequired,
};
export default compose(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment