This commit is contained in:
Alex Yatskov 2017-04-09 11:36:52 -07:00
parent cb5f725db7
commit 957c283d8a

View File

@ -74,7 +74,10 @@ class Display {
if (context) { if (context) {
for (const definition of definitions) { for (const definition of definitions) {
definition.cloze = clozeBuild(context.sentence, definition.source); if (context.sentence) {
definition.cloze = clozeBuild(context.sentence, definition.source);
}
definition.url = context.url; definition.url = context.url;
} }
} }
@ -108,7 +111,10 @@ class Display {
if (context) { if (context) {
for (const definition of definitions) { for (const definition of definitions) {
definition.cloze = clozeBuild(context.sentence); if (context.sentence) {
definition.cloze = clozeBuild(context.sentence);
}
definition.url = context.url; definition.url = context.url;
} }
} }