fix: fix Select field preview (#4507)
* fix: fix Select field preview Closes #4084 * fix: fix field preview utils tests
This commit is contained in:
+3
-1
@@ -26,7 +26,9 @@ export const getFieldDefaultPreviewValue = ({
|
||||
fieldMetadataItem.type === FieldMetadataType.Select &&
|
||||
isDefined(selectOptions)
|
||||
) {
|
||||
return selectOptions.find(({ isDefault }) => isDefault) || selectOptions[0];
|
||||
const defaultSelectOption =
|
||||
selectOptions.find(({ isDefault }) => isDefault) || selectOptions[0];
|
||||
return defaultSelectOption.value;
|
||||
}
|
||||
|
||||
// Relation field
|
||||
|
||||
Reference in New Issue
Block a user