diff --git a/erpnext/education/doctype/student_group/student_group.js b/erpnext/education/doctype/student_group/student_group.js index 372e190af9..4165ce0f2e 100644 --- a/erpnext/education/doctype/student_group/student_group.js +++ b/erpnext/education/doctype/student_group/student_group.js @@ -128,7 +128,7 @@ frappe.ui.form.on('Student Group Instructor', { frm.fields_dict['instructors'].grid.get_field('instructor').get_query = function(doc){ let instructor_list = []; $.each(doc.instructors, function(idx, val){ - instructor_list.push(val.instructor); + instructor_list.push(val.instructor); }); return { filters: [['Instructor', 'name', 'not in', instructor_list]] }; };