Adding default value for corporation activity on Firm initialization
This commit is contained in:
@@ -27,7 +27,6 @@ const New = <T,>(props: NewProps) => {
|
||||
schemaName={schemaName}
|
||||
uiSchema={uiSchema}
|
||||
resourceBasePath={resourceBasePath}
|
||||
resource={resource}
|
||||
defaultValue={defaultValue}
|
||||
onSubmit={(data: any) => onFinish(data)}
|
||||
/>
|
||||
|
||||
@@ -80,6 +80,7 @@ const FirmInitForm = (props: FirmInitFormPros) => {
|
||||
<CrudForm
|
||||
schemaName={"CurrentFirmSchema"}
|
||||
resourceBasePath={resourceBasePath}
|
||||
defaultValue={{corporation: {entity_data: {activity: t("firm.default_activity") }}}}
|
||||
uiSchema={{
|
||||
corporation: {entity_data: {employees: {"ui:style": {"display": "none"}}}},
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user