@integry/sdk 4.7.8 → 4.7.10

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.8",
3
+ "version": "4.7.10",
4
4
  "description": "Integry SDK",
5
5
  "main": "dist/umd/index.umd.js",
6
6
  "module": "dist/esm/index.csm.js",
@@ -77,7 +77,7 @@ const Input = forwardRef((props: InputProps, ref) => {
77
77
 
78
78
  let parsedValue = [''];
79
79
  if (value) {
80
- if (typeof value === 'string') {
80
+ if (typeof value === 'string' || typeof value === 'number') {
81
81
  if (isArray) {
82
82
  try {
83
83
  parsedValue = JSON.parse(value);
@@ -1555,7 +1555,7 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
1555
1555
  appName=${this.props.step.activity.app.name}
1556
1556
  isMultiSelect=${el.is_multiselect}
1557
1557
  dataSourceBody=${this.replacePlaceholders(
1558
- uiField?.data_source.body || {},
1558
+ uiField?.data_source?.body || {},
1559
1559
  this.fieldDynamicData(el) || {},
1560
1560
  )}
1561
1561
  optionKeyPath=${uiField?.value_key_path || ''}
@@ -2100,7 +2100,7 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
2100
2100
  showMenuOnLeft=${this.props
2101
2101
  .showMenuOnLeft || false}
2102
2102
  dataSourceBody=${this.replacePlaceholders(
2103
- uiField?.data_source.body || {},
2103
+ uiField?.data_source?.body || {},
2104
2104
  this.state.dynamicFieldsData,
2105
2105
  )}
2106
2106
  parentFieldsChanged=${this.state
package/src/index.ts CHANGED
@@ -2039,9 +2039,8 @@ export class IntegryJS {
2039
2039
  showMappingMenu=${options.showMappingMenu}
2040
2040
  isReadOnly=${options.isReadOnly}
2041
2041
  showMenuOnLeft=${options.showMenuOnLeft}
2042
- tagsTreeActivityOutput=${arrayToNestedJSONWithFirstValue(
2043
- JSONToActivityOutputData(options.tagsTree || {}),
2044
- {},
2042
+ tagsTreeActivityOutput=${JSONToActivityOutputData(
2043
+ options.tagsTree || {},
2045
2044
  )}
2046
2045
  />
2047
2046
  <//>