Skip to content

Commit

Permalink
ADDON-35089: Updated eslint failure fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dkhatri-crest committed Mar 31, 2021
1 parent df09b6f commit 45b86f3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 89 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,15 @@ function SingleInputComponent(props) {
allowList,
placeholder = _('Select a value'),
dependencies,
// eslint-disable-next-line no-unused-vars
createSearchChoice,
referenceName,
// eslint-disable-next-line no-unused-vars
disableSearch,
labelField,
autoCompleteFields,
} = controlOptions;

function handleChange(e, { val }) {
restProps.handleChange(field, val);
function handleChange(e, { value }) {
restProps.handleChange(field, value);
}

function generateOptions(items) {
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class Validator {
}

// Validate the custom component
static CustomValidator(validatorFunc, field, data) {
CustomValidator(validatorFunc, field, data) {
const ret = validatorFunc(field, data);
if (typeof ret === 'string') {
return { errorField: field, errorMsg: ret };
Expand Down Expand Up @@ -242,7 +242,7 @@ class Validator {
}
break;
case 'custom':
ret = this.CustomValidator(
ret = Validator.CustomValidator(
this.entities[i].validators[j].validatorFunc,
this.entities[i].field,
data[this.entities[i].field]
Expand Down

0 comments on commit 45b86f3

Please sign in to comment.