From 82165883939e259458806ba83e8befbc5d00b508 Mon Sep 17 00:00:00 2001 From: Zack Braksa Date: Thu, 25 Jul 2024 02:20:45 +0100 Subject: [PATCH] Remove unnecessary code from BasicEntityAutocompleteField --- src/lib/BasicEntityAutocompleteField.tsx | 25 +----------------------- 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/src/lib/BasicEntityAutocompleteField.tsx b/src/lib/BasicEntityAutocompleteField.tsx index ed8ad9e..3ea442b 100644 --- a/src/lib/BasicEntityAutocompleteField.tsx +++ b/src/lib/BasicEntityAutocompleteField.tsx @@ -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 }; \ No newline at end of file +export { BasicEntityAutocompleteField } \ No newline at end of file