@integry/sdk 4.7.11 → 4.7.12

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.11",
3
+ "version": "4.7.12",
4
4
  "description": "Integry SDK",
5
5
  "main": "dist/umd/index.umd.js",
6
6
  "module": "dist/esm/index.csm.js",
@@ -330,8 +330,13 @@ const ListBox = (props: ListBoxProps) => {
330
330
  if (tempFilteredItems.length === 1) {
331
331
  setEditableTextValue(tempFilteredItems[0].value);
332
332
  onChange(tempFilteredItems[0].id, true);
333
+ } else if (value) {
334
+ const item = tempFilteredItems.find((a) => a.id === value);
335
+ if (item) {
336
+ setEditableTextValue(item.value);
337
+ onChange(item.id, true);
338
+ }
333
339
  }
334
- } else {
335
340
  setSortedFilteredItems(dynamicResponseMapper(res));
336
341
  }
337
342
  // if value was selected before items were loaded, select it again
@@ -1111,6 +1111,13 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
1111
1111
  value,
1112
1112
  isRequired,
1113
1113
  });
1114
+ this.setState({ changedParentMachineName: machineName });
1115
+ this.setState((prevState) => ({
1116
+ dynamicFieldsData: {
1117
+ ...prevState.dynamicFieldsData,
1118
+ [machineName || '']: value,
1119
+ },
1120
+ }));
1114
1121
  this.props.clearChildFields({ stepId, fieldId });
1115
1122
  this.props.verifyStepValidity(Number(stepId));
1116
1123
  }