@integry/sdk 4.5.43 → 4.5.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -26,6 +26,7 @@ interface ObjectFieldProps {
|
|
|
26
26
|
isArray?: boolean; // New prop to check if the input is an array
|
|
27
27
|
activityOutputData: any;
|
|
28
28
|
activityOutputDataRaw: any;
|
|
29
|
+
objectValue?: any;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
type Option = {
|
|
@@ -101,6 +102,7 @@ const ObjectField = (props: ObjectFieldProps) => {
|
|
|
101
102
|
isArray = false, // Default to false
|
|
102
103
|
activityOutputData,
|
|
103
104
|
activityOutputDataRaw,
|
|
105
|
+
objectValue,
|
|
104
106
|
} = props;
|
|
105
107
|
const [objectArray, setObjectArray] = useState<FieldObject[]>([{}]); // Start with one empty object in the array
|
|
106
108
|
const [showAddMoreOption, setShowAddMoreOption] = useState(true);
|
|
@@ -290,6 +292,7 @@ const ObjectField = (props: ObjectFieldProps) => {
|
|
|
290
292
|
isMappable=${activityOutputDataRaw &&
|
|
291
293
|
Object.entries(activityOutputDataRaw).length > 0}
|
|
292
294
|
allowTagsInText=${activityOutputDataRaw}
|
|
295
|
+
value=${objectValue}
|
|
293
296
|
><//>
|
|
294
297
|
`}
|
|
295
298
|
${fieldType === 'CHECKBOX' &&
|
|
@@ -1581,6 +1581,16 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
|
|
|
1581
1581
|
activityOutputDataRaw=${
|
|
1582
1582
|
this.props.activityOutputData
|
|
1583
1583
|
}
|
|
1584
|
+
objectValue=${
|
|
1585
|
+
(selectedStepData &&
|
|
1586
|
+
selectedStepData[el.id] &&
|
|
1587
|
+
selectedStepData[el.id].value &&
|
|
1588
|
+
selectedStepData[el.id].value !==
|
|
1589
|
+
'x-integry-skipped-field' &&
|
|
1590
|
+
selectedStepData[el.id].value) ||
|
|
1591
|
+
el.default_value ||
|
|
1592
|
+
''
|
|
1593
|
+
}
|
|
1584
1594
|
/>
|
|
1585
1595
|
</${ConfigureFieldWrapper}>
|
|
1586
1596
|
</div>
|