Skip to content
Snippets Groups Projects
Commit 9ae284b9 authored by rhenck's avatar rhenck
Browse files

Fix cloze element parsing of empty line

parent b361c942
No related branches found
No related tags found
No related merge requests found
......@@ -67,6 +67,9 @@ export class ClozeElement extends CompoundElement implements PositionedElement,
private static getParagraphCustomElements(documentPart: any): InputElement[] {
console.log('fff', documentPart);
if (!documentPart.content) {
return [];
}
return documentPart.content
.filter((word: ClozeDocumentPart) => ['TextField', 'DropList', 'ToggleButton'].includes(word.type))
.reduce((accumulator: any[], currentValue: any) => {
......
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