@integry/sdk 4.5.51 → 4.5.52
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
|
@@ -246,6 +246,13 @@ const ObjectField = (props: ObjectFieldProps) => {
|
|
|
246
246
|
});
|
|
247
247
|
};
|
|
248
248
|
|
|
249
|
+
const formatValueForTextarea = (value: any): string => {
|
|
250
|
+
if (typeof value === 'object' && value !== null) {
|
|
251
|
+
return JSON.stringify(value, null, 2); // Pretty-print with 2-space indentation
|
|
252
|
+
}
|
|
253
|
+
return String(value); // Convert other values to string
|
|
254
|
+
};
|
|
255
|
+
|
|
249
256
|
// Render fields for each object in the array
|
|
250
257
|
const renderFields = (
|
|
251
258
|
properties: { [key: string]: FieldDetails },
|
|
@@ -326,7 +333,7 @@ const ObjectField = (props: ObjectFieldProps) => {
|
|
|
326
333
|
isMappable=${activityOutputDataRaw &&
|
|
327
334
|
Object.entries(activityOutputDataRaw).length > 0}
|
|
328
335
|
allowTagsInText=${activityOutputDataRaw}
|
|
329
|
-
value=${objectValue}
|
|
336
|
+
value=${formatValueForTextarea(objectValue)}
|
|
330
337
|
><//>
|
|
331
338
|
`}
|
|
332
339
|
${fieldType === 'CHECKBOX' &&
|
|
@@ -1588,10 +1588,8 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
|
|
|
1588
1588
|
objectValue=${
|
|
1589
1589
|
(selectedStepData &&
|
|
1590
1590
|
selectedStepData[el.id] &&
|
|
1591
|
-
selectedStepData[el.id].
|
|
1592
|
-
selectedStepData[el.id].
|
|
1593
|
-
'x-integry-skipped-field' &&
|
|
1594
|
-
selectedStepData[el.id].value) ||
|
|
1591
|
+
selectedStepData[el.id].objectValue &&
|
|
1592
|
+
selectedStepData[el.id].objectValue) ||
|
|
1595
1593
|
el.default_value ||
|
|
1596
1594
|
''
|
|
1597
1595
|
}
|