@integry/sdk 4.7.2 → 4.7.4

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integry/sdk",
3
- "version": "4.7.2",
3
+ "version": "4.7.4",
4
4
  "description": "Integry SDK",
5
5
  "main": "dist/umd/index.umd.js",
6
6
  "module": "dist/esm/index.csm.js",
@@ -78,7 +78,7 @@ const transformTemplateFieldsToProperties = (templateFields: any[]) => {
78
78
  placeholder: tf.placeholder,
79
79
  regex: tf.regex || '',
80
80
  regex_error_message: tf.regex_msg || 'Invalid input.',
81
- ui_field: {
81
+ ui_field: tf?.ui_field || {
82
82
  type: tf.type || 'TEXTFIELD',
83
83
  options: [], // Populate if needed
84
84
  data_source: null, // Adjust if needed
@@ -264,7 +264,8 @@ class FunctionForm extends Component<
264
264
  value = value.map((item: string) => Number(item));
265
265
  } else if (
266
266
  fieldDetails.items &&
267
- fieldDetails.items.type === 'string'
267
+ fieldDetails.items.type === 'string' &&
268
+ typeof value === 'string'
268
269
  ) {
269
270
  try {
270
271
  value = JSON.parse(value);