Fix relation field type (#4992)

This commit is contained in:
martmull
2024-04-17 14:56:27 +02:00
committed by GitHub
parent cf50391b00
commit 64cc6ecc3b
4 changed files with 10 additions and 5 deletions

View File

@ -23,8 +23,8 @@ export const getOptionValueFromLabel = (label: string) => {
export const formatFieldMetadataItemInput = (
input: Pick<
Field,
'label' | 'icon' | 'description' | 'defaultValue' | 'type' | 'options'
>,
'label' | 'icon' | 'description' | 'defaultValue' | 'options'
> & { type?: FieldMetadataType },
) => {
const options = input.options as FieldMetadataOption[];
let defaultValue = input.defaultValue;