@@ -1140,6 +1140,8 @@ export const compareList = [
11401140 { value : 'is_not_true' , label : t ( 'workflow.compare.is_not_true' ) } ,
11411141 { value : 'start_with' , label : 'startWith' } ,
11421142 { value : 'end_with' , label : 'endWith' } ,
1143+ { value : 'type_is' , label : t ( 'workflow.compare.type_is' ) } ,
1144+ { value : 'type_not' , label : t ( 'workflow.compare.type_not' ) } ,
11431145 { value : 'regex' , label : t ( 'workflow.compare.regex' ) } ,
11441146 { value : 'wildcard' , label : t ( 'workflow.compare.wildcard' ) } ,
11451147]
@@ -1528,27 +1530,12 @@ ${t('workflow.nodes.formNode.form_content_format2')}`,
15281530 ] ,
15291531 ] ,
15301532] . forEach ( ( [ nodes , keys ] ) => bindFieldLabels ( nodes as Array < any > , keys as string [ ] ) )
1531- ; [
1532- 'workflow.compare.is_null' ,
1533- 'workflow.compare.is_not_null' ,
1534- 'workflow.compare.contain' ,
1535- 'workflow.compare.not_contain' ,
1536- 'workflow.compare.eq' ,
1537- 'workflow.compare.not_eq' ,
1538- 'workflow.compare.ge' ,
1539- 'workflow.compare.gt' ,
1540- 'workflow.compare.le' ,
1541- 'workflow.compare.lt' ,
1542- 'workflow.compare.len_eq' ,
1543- 'workflow.compare.len_ge' ,
1544- 'workflow.compare.len_gt' ,
1545- 'workflow.compare.len_le' ,
1546- 'workflow.compare.len_lt' ,
1547- 'workflow.compare.is_true' ,
1548- 'workflow.compare.is_not_true' ,
1549- ] . forEach ( ( key , index ) => defineLocaleGetter ( compareList [ index ] , 'label' , key ) )
1550- defineLocaleGetter ( compareList [ 19 ] , 'label' , 'workflow.compare.regex' )
1551- defineLocaleGetter ( compareList [ 20 ] , 'label' , 'workflow.compare.wildcard' )
1533+
1534+ compareList . forEach ( ( compare , index ) => {
1535+ if ( compare . value !== 'start_with' && compare . value !== 'end_with' ) {
1536+ defineLocaleGetter ( compare , 'label' , compare . label )
1537+ }
1538+ } )
15521539
15531540export function isWorkFlow ( type : string | undefined ) {
15541541 return type === 'WORK_FLOW'
0 commit comments