create question missing cache fix

This commit is contained in:
mrfry 2021-03-17 17:24:38 +01:00
parent c167dcf5b2
commit b700bfba77
3 changed files with 7 additions and 4 deletions

View file

@ -217,6 +217,10 @@ function createQuestion(
Q: simplifyQuestion(question),
A: answer ? simplifyAnswer(answer) : undefined,
data: data,
cache: {
Q: question ? simplifyString(question).split(' ') : [],
A: answer ? simplifyString(answer).split(' ') : [],
},
}
} else {
return {