feat: select default Unit for Currency field (#2996)
Closes #2347 Co-authored-by: Thais GUIGON <thaisguigon@macbook-pro.home>
This commit is contained in:
@ -19,6 +19,7 @@ export const useFieldMetadataItem = () => {
|
||||
|
||||
const createMetadataField = (
|
||||
input: Pick<Field, 'label' | 'icon' | 'description'> & {
|
||||
defaultValue?: unknown;
|
||||
objectMetadataId: string;
|
||||
options?: Omit<FieldMetadataOption, 'id'>[];
|
||||
type: FieldMetadataType;
|
||||
@ -26,6 +27,7 @@ export const useFieldMetadataItem = () => {
|
||||
) =>
|
||||
createOneFieldMetadataItem({
|
||||
...formatFieldMetadataItemInput(input),
|
||||
defaultValue: input.defaultValue,
|
||||
objectMetadataId: input.objectMetadataId,
|
||||
type: input.type as FieldType,
|
||||
});
|
||||
|
||||
@ -21,7 +21,7 @@ export type FieldMetadataItem = Omit<
|
||||
>;
|
||||
})
|
||||
| null;
|
||||
defaultValue?: string;
|
||||
defaultValue?: unknown;
|
||||
options?: {
|
||||
color: ThemeColor;
|
||||
id: string;
|
||||
|
||||
Reference in New Issue
Block a user