Fix null content bug
This commit is contained in:
parent
b65216c373
commit
4aaafd5bde
1 changed files with 4 additions and 0 deletions
|
|
@ -60,6 +60,10 @@ export default {
|
||||||
instructionBlocks() {
|
instructionBlocks() {
|
||||||
const answers = this.getCmsContent(this.cmsWidgetName, "Answers");
|
const answers = this.getCmsContent(this.cmsWidgetName, "Answers");
|
||||||
|
|
||||||
|
if (!answers) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
const instructionBlocksRaw = answers.map((ans) => ans.Text);
|
const instructionBlocksRaw = answers.map((ans) => ans.Text);
|
||||||
|
|
||||||
const instructionBlocksAsTokens = instructionBlocksRaw.map((raw) =>
|
const instructionBlocksAsTokens = instructionBlocksRaw.map((raw) =>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue