Skip to content
Snippets Groups Projects
Commit e5cc1d18 authored by Thomas Roos's avatar Thomas Roos
Browse files

Go back to search after editing from search

parent 1edfeb65
No related branches found
No related tags found
No related merge requests found
......@@ -270,7 +270,7 @@ class CheckStudents extends React.Component {
}
toggleEdit = (student) => {
if (student.id) {
if (student && student.id) {
this.setState({
editActive: true,
editStud: student
......
......@@ -97,7 +97,11 @@ class EditPanel extends React.Component {
lastName: "",
email: ""
})
this.idblock.clear();
if (this.props.editStud) {
this.props.toggleEdit();
} else {
this.idblock.clear();
}
})
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment