enumOptions and enum reader used everywhere
This commit is contained in:
@@ -111,8 +111,8 @@ function extractOptions(
|
||||
): string[] {
|
||||
const values = new Set<string>();
|
||||
|
||||
if (field.type === 'enum' && field.options) {
|
||||
return getFieldOptions(field).map(o => o.key);
|
||||
if (field.type === 'enum') {
|
||||
return getFieldOptions(field).map(o => o.value);
|
||||
}
|
||||
if (!data) return [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user