Skip to content

Commit

Permalink
Remove unnecessary code from BasicEntityAutocompleteField
Browse files Browse the repository at this point in the history
  • Loading branch information
zackatbrightbeam committed Jul 25, 2024
1 parent aea72fb commit 8216588
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions src/lib/BasicEntityAutocompleteField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,27 +88,4 @@ function resolveOptions(options: any) {
}
}

// function resolveDefaultValue(options: any) {
// if(options.multiple === false) {
// const keys = Object.keys(options.default);
// if (keys.length > 0) {
// return { key: keys[0], value: options.default[keys[0]] }
// } else {
// return null
// }
// } else {
// return Object.keys(options.default).map(key => ({
// label: options.default[key].label,
// value: key
// }))
// }
// }

// function resolveOptions(options: any) {
// return Object.keys(options.ents).map(key => ({
// label: options.ents[key].label,
// value: key
// }))
// }

export { BasicEntityAutocompleteField };
export { BasicEntityAutocompleteField }

0 comments on commit 8216588

Please sign in to comment.