@ -78,6 +78,12 @@ class CoursesNew extends Component {
console.log(error);
})
}else{
let url = "/courses/new.json"
axios.get(url).then((result) => {
console.log(result)
}).catch((error) => {
// console.log(user_school);
this.props.form.setFieldsValue({
school:user_school,
@ -158,6 +158,15 @@ class PathNew extends Component{
}
componentDidMount() {
let url = "/paths/new.json"
let pathId = this.props.match.params.pathId;
if (pathId) {
this.isEditPage = true