Fix relation field type (#4992)
This commit is contained in:
@ -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;
|
||||
|
||||
@ -12,7 +12,7 @@ export type FormatRelationMetadataInputParams = {
|
||||
field: Pick<Field, 'label' | 'icon' | 'description' | 'type'>;
|
||||
objectMetadataId: string;
|
||||
connect: {
|
||||
field: Pick<Field, 'label' | 'icon' | 'type'>;
|
||||
field: Pick<Field, 'label' | 'icon'>;
|
||||
objectMetadataId: string;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user