File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed
src/provider/zeebe/properties Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ import { FeelEntryWithVariableContext } from '../../../entries/FeelEntryWithCont
27
27
28
28
import { withProps } from '../../HOCs/withProps.js' ;
29
29
30
+ const CalledDecisionBinding = withProps ( Binding , { type : 'zeebe:CalledDecision' } ) ,
31
+ CalledDecisionVersionTag = withProps ( VersionTag , { type : 'zeebe:CalledDecision' } ) ;
32
+
30
33
31
34
export function CalledDecisionProps ( props ) {
32
35
const {
@@ -45,15 +48,15 @@ export function CalledDecisionProps(props) {
45
48
} ,
46
49
{
47
50
id : 'bindingType' ,
48
- component : withProps ( Binding , { type : 'zeebe:CalledDecision' } ) ,
51
+ component : CalledDecisionBinding ,
49
52
isEdited : isSelectEntryEdited
50
53
}
51
54
] ;
52
55
53
56
if ( getBindingType ( element , 'zeebe:CalledDecision' ) === 'versionTag' ) {
54
57
entries . push ( {
55
58
id : 'versionTag' ,
56
- component : withProps ( VersionTag , { type : 'zeebe:CalledDecision' } ) ,
59
+ component : CalledDecisionVersionTag ,
57
60
isEdited : isTextFieldEntryEdited
58
61
} ) ;
59
62
}
Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ import {
40
40
41
41
import { withProps } from '../../HOCs' ;
42
42
43
+ const FormDefinitionBinding = withProps ( Binding , { type : 'zeebe:FormDefinition' } ) ,
44
+ FormDefinitionVersionTag = withProps ( VersionTag , { type : 'zeebe:FormDefinition' } ) ;
45
+
43
46
const NONE_VALUE = 'none' ;
44
47
45
48
@@ -87,14 +90,14 @@ export function FormProps(props) {
87
90
if ( formType === FORM_TYPES . CAMUNDA_FORM_LINKED ) {
88
91
entries . push ( {
89
92
id : 'bindingType' ,
90
- component : withProps ( Binding , { type : 'zeebe:FormDefinition' } ) ,
93
+ component : FormDefinitionBinding ,
91
94
isEdited : isSelectEntryEdited
92
95
} ) ;
93
96
94
97
if ( getBindingType ( element , 'zeebe:FormDefinition' ) === 'versionTag' ) {
95
98
entries . push ( {
96
99
id : 'versionTag' ,
97
- component : withProps ( VersionTag , { type : 'zeebe:FormDefinition' } ) ,
100
+ component : FormDefinitionVersionTag ,
98
101
isEdited : isTextFieldEntryEdited
99
102
} ) ;
100
103
}
Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ import { FeelEntryWithVariableContext } from '../../../entries/FeelEntryWithCont
27
27
28
28
import { withProps } from '../../HOCs/withProps.js' ;
29
29
30
+ const CalledElementBinding = withProps ( Binding , { type : 'zeebe:CalledElement' } ) ,
31
+ CalledElementVersionTag = withProps ( VersionTag , { type : 'zeebe:CalledElement' } ) ;
32
+
30
33
31
34
export function TargetProps ( props ) {
32
35
const {
@@ -45,15 +48,15 @@ export function TargetProps(props) {
45
48
} ,
46
49
{
47
50
id : 'bindingType' ,
48
- component : withProps ( Binding , { type : 'zeebe:CalledElement' } ) ,
51
+ component : CalledElementBinding ,
49
52
isEdited : isSelectEntryEdited
50
53
}
51
54
] ;
52
55
53
56
if ( getBindingType ( element , 'zeebe:CalledElement' ) === 'versionTag' ) {
54
57
entries . push ( {
55
58
id : 'versionTag' ,
56
- component : withProps ( VersionTag , { type : 'zeebe:CalledElement' } ) ,
59
+ component : CalledElementVersionTag ,
57
60
isEdited : isTextFieldEntryEdited
58
61
} ) ;
59
62
}
You can’t perform that action at this time.
0 commit comments