@trackunit/iris-app-runtime-core 0.3.87-alpha-5bf259599b.0 → 0.3.87
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/index.cjs.js +3 -2
- package/index.esm.js +3 -2
- package/package.json +3 -3
package/index.cjs.js
CHANGED
|
@@ -685,10 +685,11 @@ const CustomFieldRuntime = {
|
|
|
685
685
|
Object.keys(formData).forEach(key => {
|
|
686
686
|
var _a;
|
|
687
687
|
const found = (_a = originalDefinitions.find(originalDefinition => originalDefinition.definition.key === key)) === null || _a === void 0 ? void 0 : _a.definition;
|
|
688
|
-
|
|
688
|
+
const formDataValue = formData[key];
|
|
689
|
+
if (found && formDataValue) {
|
|
689
690
|
values.push({
|
|
690
691
|
definitionKey: key,
|
|
691
|
-
value: getCustomFieldValueToSaveFromRawValue(found,
|
|
692
|
+
value: getCustomFieldValueToSaveFromRawValue(found, formDataValue),
|
|
692
693
|
});
|
|
693
694
|
}
|
|
694
695
|
else {
|
package/index.esm.js
CHANGED
|
@@ -682,10 +682,11 @@ const CustomFieldRuntime = {
|
|
|
682
682
|
Object.keys(formData).forEach(key => {
|
|
683
683
|
var _a;
|
|
684
684
|
const found = (_a = originalDefinitions.find(originalDefinition => originalDefinition.definition.key === key)) === null || _a === void 0 ? void 0 : _a.definition;
|
|
685
|
-
|
|
685
|
+
const formDataValue = formData[key];
|
|
686
|
+
if (found && formDataValue) {
|
|
686
687
|
values.push({
|
|
687
688
|
definitionKey: key,
|
|
688
|
-
value: getCustomFieldValueToSaveFromRawValue(found,
|
|
689
|
+
value: getCustomFieldValueToSaveFromRawValue(found, formDataValue),
|
|
689
690
|
});
|
|
690
691
|
}
|
|
691
692
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/iris-app-runtime-core",
|
|
3
|
-
"version": "0.3.87
|
|
3
|
+
"version": "0.3.87",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"module": "./index.esm.js",
|
|
10
10
|
"main": "./index.cjs.js",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@trackunit/iris-app-runtime-core-api": "0.3.78
|
|
13
|
-
"@trackunit/react-core-contexts-api": "0.2.64
|
|
12
|
+
"@trackunit/iris-app-runtime-core-api": "0.3.78",
|
|
13
|
+
"@trackunit/react-core-contexts-api": "0.2.64"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {}
|
|
16
16
|
}
|