Showing
1 changed file
with
2 additions
and
0 deletions
@@ -71,6 +71,7 @@ export enum FormFieldsNameEnum { | @@ -71,6 +71,7 @@ export enum FormFieldsNameEnum { | ||
71 | 71 | ||
72 | export const getFormSchemas = ({ | 72 | export const getFormSchemas = ({ |
73 | transportType, | 73 | transportType, |
74 | + mode, | ||
74 | }: { | 75 | }: { |
75 | transportType?: string; | 76 | transportType?: string; |
76 | mode?: DataActionModeEnum; | 77 | mode?: DataActionModeEnum; |
@@ -82,6 +83,7 @@ export const getFormSchemas = ({ | @@ -82,6 +83,7 @@ export const getFormSchemas = ({ | ||
82 | component: 'Segmented', | 83 | component: 'Segmented', |
83 | defaultValue: FunctionTypeEnum.PROPERTIES, | 84 | defaultValue: FunctionTypeEnum.PROPERTIES, |
84 | required: true, | 85 | required: true, |
86 | + dynamicDisabled: mode !== DataActionModeEnum.CREATE, | ||
85 | componentProps: ({ formActionType }) => { | 87 | componentProps: ({ formActionType }) => { |
86 | return { | 88 | return { |
87 | options: Object.keys(FunctionTypeEnum).map((key) => ({ | 89 | options: Object.keys(FunctionTypeEnum).map((key) => ({ |