Fix various small typos

This commit is contained in:
Pieter Vander Vennet 2021-01-12 20:46:01 +01:00
parent 6a254e10e5
commit 137e25037c
5 changed files with 24 additions and 1 deletions

View file

@ -93,6 +93,10 @@ export default class TagRenderingConfig {
if (this.question && this.freeform?.key === undefined && this.mappings === undefined) {
throw `A question is defined, but no mappings nor freeform (key) are. The question is ${this.question.txt} at ${context}`
}
if(this.freeform && this.render === undefined){
throw `Detected a freeform key without rendering... Key: ${this.freeform.key} in ${context}`
}
if (json.multiAnswer) {
if ((this.mappings?.length ?? 0) === 0) {