Skip to content

Commit

Permalink
fix: warn when the typeUserAttr is unable to be processed instead of …
Browse files Browse the repository at this point in the history
…silently ignoring
  • Loading branch information
lucasnetau committed Sep 14, 2023
1 parent 4ca0dc9 commit b54ff0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/form-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,9 @@ function FormBuilder(opts, element, $) {
} else if (attrValType === 'undefined' && hasSubType(values, attribute)) {
advField.push(processTypeUserAttrs(typeUserAttr[attribute], values))
} else {
continue
const def = {}
def[attribute] = typeUserAttr[attribute]
opts.notify.warning('Warning: unable to process typeUserAttr definition : ' + JSON.stringify(def))
}
}
}
Expand Down

0 comments on commit b54ff0d

Please sign in to comment.