Removed .Subjects to work with new data structure

This commit is contained in:
MrFry 2020-10-21 16:29:14 +02:00
parent 7ac65348e4
commit d523d50fa1
4 changed files with 15 additions and 9 deletions

View file

@ -5,7 +5,7 @@ export default function SubjectSelector (props) {
return (
<div className='subjectSelector'>
{data.Subjects.map((subj, i) => {
{data.map((subj, i) => {
if (!subj.Name.toLowerCase().includes(searchTerm.toLowerCase())) {
return null
}