Skip to content

Commit

Permalink
Hotfix: deleteId undefined (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinchappell authored Oct 17, 2016
1 parent 884f6b6 commit eae83a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/form-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,7 @@
if (opts.fieldRemoveWarn) {
let warnH3 = utils.markup('h3', opts.messages.warning),
warnMessage = utils.markup('p', opts.messages.fieldRemoveWarning);
_helpers.confirm([warnH3, warnMessage], deleteID => _helpers.removeField(deleteID), coords);
_helpers.confirm([warnH3, warnMessage], () => _helpers.removeField(deleteID), coords);
$field.addClass('deleting');
} else {
_helpers.removeField(deleteID);
Expand Down
2 changes: 1 addition & 1 deletion src/js/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ function formBuilderHelpersFn(opts, formBuilder) {
}

if (!fieldID) {
let availableIds = [].slice.call().map((field) => {
let availableIds = [].slice.call(fields).map((field) => {
return field.id;
});
console.warn('fieldID required to use `removeField` action.');
Expand Down

0 comments on commit eae83a4

Please sign in to comment.