Fixed sentence header mapping
This commit is contained in:
@@ -39,17 +39,14 @@ const MatchSentencesEdit = (props: Props) => {
|
||||
label={`Sentence ${index + 1}`}
|
||||
name="sentence"
|
||||
required
|
||||
value={sentence.sentence.heading}
|
||||
value={sentence.sentence}
|
||||
onChange={(value) =>
|
||||
updateExercise({
|
||||
sentences: exercise.sentences.map((iSol) =>
|
||||
iSol.id === sentence.id
|
||||
? {
|
||||
...iSol,
|
||||
sentence: {
|
||||
...iSol.sentence,
|
||||
heading: value,
|
||||
},
|
||||
sentence: value,
|
||||
}
|
||||
: iSol
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user