Small improvements

This commit is contained in:
Pieter Vander Vennet 2021-07-29 00:29:29 +02:00
parent de721c6c37
commit 1a4417545a
5 changed files with 28 additions and 24 deletions

View file

@ -87,6 +87,10 @@ export default class TagRenderingConfig {
if (this.freeform.key === undefined || this.freeform.key === "") {
throw `Freeform.key is undefined or the empty string - this is not allowed; either fill out something or remove the freeform block alltogether. Error in ${context}`
}
if(json.freeform["args"] !== undefined){
throw `Freeform.args is defined. This should probably be 'freeform.helperArgs' (at ${context})`
}
if (ValidatedTextField.AllTypes[this.freeform.type] === undefined) {