@@ -7,6 +7,11 @@ import {useFlowValidation} from "@edition/flow/hooks/Flow.validation.hook";
77import { DataTypeInputComponent } from "@edition/datatype/components/inputs/DataTypeInputComponent" ;
88import { getTypesFromFunction } from "@code0-tech/triangulum" ;
99import { DataTypeTypeInputComponent } from "@edition/datatype/components/inputs/datatype/DataTypeTypeInputComponent" ;
10+ import {
11+ FALLBACK_FLOW_TYPE_DESCRIPTION ,
12+ FALLBACK_FLOW_TYPE_SETTING_DESCRIPTION ,
13+ FALLBACK_FLOW_TYPE_SETTING_NAME
14+ } from "@core/util/fallback-translations" ;
1015
1116export interface FunctionFileTriggerComponentProps {
1217 instance : Flow
@@ -48,7 +53,7 @@ export const FunctionFileTriggerComponent: React.FC<FunctionFileTriggerComponent
4853 values [ index ] = ( _ : any ) => {
4954 const validationForSetting = validation ?. find ( v => v . parameterIndex === index && ! v . nodeId )
5055 if ( validationForSetting ) {
51- return validationForSetting . message ! ! [ 0 ] ?. content || "Invalid value"
56+ return validationForSetting . message ?. [ 0 ] ?. content || "Invalid value"
5257 }
5358 return null
5459 }
@@ -104,8 +109,8 @@ export const FunctionFileTriggerComponent: React.FC<FunctionFileTriggerComponent
104109
105110 if ( ! settingDefinition ) return null
106111
107- const title = settingDefinition . names ! ! [ 0 ] ?. content ?? ""
108- const description = settingDefinition ?. descriptions ! ! [ 0 ] ?. content ?? ""
112+ const title = settingDefinition . names ?. [ 0 ] ?. content ?? FALLBACK_FLOW_TYPE_SETTING_NAME
113+ const description = settingDefinition ?. descriptions ?. [ 0 ] ?. content ?? FALLBACK_FLOW_TYPE_SETTING_DESCRIPTION
109114
110115 return < div >
111116 { /*@ts -ignore*/ }
0 commit comments