diff --git a/src/components/workspace/ABIUi/TactABIUi.tsx b/src/components/workspace/ABIUi/TactABIUi.tsx index d7f19c7..9234488 100644 --- a/src/components/workspace/ABIUi/TactABIUi.tsx +++ b/src/components/workspace/ABIUi/TactABIUi.tsx @@ -70,7 +70,8 @@ function getValidtionRule(field: TactABIField) { function FieldItem( fieldType: string, files: Tree[], - placeholder?: string, + placeholder: string, + defaultValue?: string | number | undefined, ): JSX.Element { const renderFilesForCell = () => { return files @@ -102,7 +103,12 @@ function FieldItem( ); default: - return ; + return ( + + ); } } @@ -281,6 +287,7 @@ export default cell;`} fieldKind === 'simple' ? field.type.type : 'unknown', files, inputFieldType, + field.type.defaultValue, )}