|
|
|
@ -2519,7 +2519,6 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
axios.get(url).then((response) => {
|
|
|
|
|
if (response) {
|
|
|
|
|
if (response.data.status === 0) {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.props.showNotification(`${response.data.message}`);
|
|
|
|
|
// var homeworkid = this.props.match.params.homeworkid;
|
|
|
|
|
this.Getalistofworks(homeworkid, false);
|
|
|
|
@ -2529,12 +2528,14 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}, 2500);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// this.Getalistofworkstwo("", "", "", "", 1, 20);
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error)
|
|
|
|
|
this.setState({
|
|
|
|
|
computeTimetype:true
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -3364,7 +3365,6 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
axios.get(url).then((response) => {
|
|
|
|
|
if (response) {
|
|
|
|
|
if (response.data.status === 0) {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.setState({
|
|
|
|
|
loadingstate: true
|
|
|
|
|
})
|
|
|
|
@ -3379,11 +3379,13 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}, 500);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error)
|
|
|
|
|
this.setState({
|
|
|
|
|
computeTimetype:true
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|