@visns-studio/visns-components 1.6.9 → 1.6.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.
@@ -143,7 +143,10 @@ function Form(props) {
143
143
  if (formData.hasOwnProperty(a)) {
144
144
  setFormData((prevState) => ({
145
145
  ...prevState,
146
- [a]: inputValue[a],
146
+ [a]:
147
+ prevState[a] !== ""
148
+ ? prevState[a]
149
+ : inputValue[a],
147
150
  }));
148
151
  }
149
152
  });
@@ -11,18 +11,18 @@ function MultiSelect(props) {
11
11
 
12
12
  if (options.length > 0) {
13
13
  options.forEach((a) => {
14
- let _optionItem;
15
-
16
- _optionItem = {
14
+ let _optionItem = {
17
15
  value: a.id,
18
16
  label: a.label,
19
17
  };
20
18
 
21
19
  Object.keys(a).forEach((b) => {
22
- _optionItem = {
23
- ..._optionItem,
24
- [b]: a[b],
25
- };
20
+ if (b !== "id") {
21
+ _optionItem = {
22
+ ..._optionItem,
23
+ [b]: a[b],
24
+ };
25
+ }
26
26
  });
27
27
 
28
28
  _options.push(_optionItem);
package/package.json CHANGED
@@ -34,7 +34,7 @@
34
34
  "react-dom": "^17.0.1"
35
35
  },
36
36
  "name": "@visns-studio/visns-components",
37
- "version": "1.6.9",
37
+ "version": "1.6.10",
38
38
  "description": "Various packages to assist in the development of our Custom Applications.",
39
39
  "main": "index.js",
40
40
  "devDependencies": {},