Skip to content

Commit

Permalink
Fix ReferenceError when valuesLookup is a function (olifolkerd#3717)
Browse files Browse the repository at this point in the history
  • Loading branch information
niladic authored May 2, 2022
1 parent a4c1214 commit 99755ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/modules/Edit/List.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ export default class Edit{
values = this._ajaxRequest(this.params.valuesURL, this.input.value);
}else{
if(typeof this.params.valuesLookup === "function"){
values = this.params.valuesLookup(cell, this.input.value);
values = this.params.valuesLookup(this.cell, this.input.value);
}else if(this.params.valuesLookup){
values = this._uniqueColumnValues(this.params.valuesLookupField);
}
Expand Down Expand Up @@ -994,4 +994,4 @@ export default class Edit{
}
}

}
}

0 comments on commit 99755ec

Please sign in to comment.