Small fixes

This commit is contained in:
Pieter Vander Vennet 2021-06-24 14:21:41 +02:00
parent 81ba9973e7
commit 0789abf65e
3 changed files with 3 additions and 3 deletions

View file

@ -50,7 +50,7 @@ export default class TagRenderingQuestion extends UIElement {
cancelButton?: BaseUIElement
) {
super(tags);
this._applicableUnit = units.filter(unit => unit.isApplicableToKey(configuration.freeform?.key))[0];
this._applicableUnit = (units ?? []).filter(unit => unit.isApplicableToKey(configuration.freeform?.key))[0];
this._tags = tags;
this._configuration = configuration;
this._cancelButton = cancelButton;