}
}
this.constraints = new Array();
- if(changes.propertyConstraints.currentValue) {
+ if (changes.propertyConstraints && changes.propertyConstraints.currentValue) {
changes.propertyConstraints.currentValue.forEach((constraint: any) => {
this.constraints.push(this.getConstraintFromPropertyBEModel(constraint));
});
export interface Constraint {
type:ConstraintTypes,
value:any
-}
\ No newline at end of file
+}