@trackunit/react-table-helpers 1.16.17 → 1.16.18-alpha-ae1ff73fc64.0
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 +1 -1
- package/index.esm.js +1 -1
- package/package.json +14 -14
package/index.cjs.js
CHANGED
|
@@ -142,7 +142,7 @@ const customFieldToCell = (customField, unitTranslation, unitPreference, languag
|
|
|
142
142
|
return jsxRuntime.jsx(reactTableBaseComponents.TextCell, { content: customField.jsonValue?.toString() ?? "" });
|
|
143
143
|
case "NumberFieldValueAndDefinition": {
|
|
144
144
|
const unitType = unitPreference === "SI" ? customField.definition.unitSi : customField.definition.unitUs;
|
|
145
|
-
const value = customField.numberValue ? customField.numberValue + "" : undefined;
|
|
145
|
+
const value = customField.numberValue !== null && customField.numberValue !== undefined ? customField.numberValue + "" : undefined;
|
|
146
146
|
const updatedValue = irisAppRuntimeCore.getCustomFieldValueForDisplayInUI(value, unitType, unitPreference, language);
|
|
147
147
|
return jsxRuntime.jsx(reactTableBaseComponents.NumberCell, { unit: unitTranslation(unitType), value: updatedValue });
|
|
148
148
|
}
|
package/index.esm.js
CHANGED
|
@@ -140,7 +140,7 @@ const customFieldToCell = (customField, unitTranslation, unitPreference, languag
|
|
|
140
140
|
return jsx(TextCell, { content: customField.jsonValue?.toString() ?? "" });
|
|
141
141
|
case "NumberFieldValueAndDefinition": {
|
|
142
142
|
const unitType = unitPreference === "SI" ? customField.definition.unitSi : customField.definition.unitUs;
|
|
143
|
-
const value = customField.numberValue ? customField.numberValue + "" : undefined;
|
|
143
|
+
const value = customField.numberValue !== null && customField.numberValue !== undefined ? customField.numberValue + "" : undefined;
|
|
144
144
|
const updatedValue = getCustomFieldValueForDisplayInUI(value, unitType, unitPreference, language);
|
|
145
145
|
return jsx(NumberCell, { unit: unitTranslation(unitType), value: updatedValue });
|
|
146
146
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-table-helpers",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.18-alpha-ae1ff73fc64.0",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -8,20 +8,20 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"react": "19.0.0",
|
|
11
|
-
"@trackunit/date-and-time-utils": "1.11.
|
|
12
|
-
"@trackunit/filters-filter-bar": "1.15.
|
|
13
|
-
"@trackunit/filters-graphql-hook": "1.18.
|
|
14
|
-
"@trackunit/i18n-library-translation": "1.12.
|
|
15
|
-
"@trackunit/custom-field-components": "1.14.
|
|
16
|
-
"@trackunit/iris-app-runtime-core": "1.13.
|
|
17
|
-
"@trackunit/iris-app-runtime-core-api": "1.12.
|
|
18
|
-
"@trackunit/react-table-base-components": "1.14.
|
|
19
|
-
"@trackunit/react-table": "1.14.
|
|
11
|
+
"@trackunit/date-and-time-utils": "1.11.70-alpha-ae1ff73fc64.0",
|
|
12
|
+
"@trackunit/filters-filter-bar": "1.15.16-alpha-ae1ff73fc64.0",
|
|
13
|
+
"@trackunit/filters-graphql-hook": "1.18.16-alpha-ae1ff73fc64.0",
|
|
14
|
+
"@trackunit/i18n-library-translation": "1.12.60-alpha-ae1ff73fc64.0",
|
|
15
|
+
"@trackunit/custom-field-components": "1.14.16-alpha-ae1ff73fc64.0",
|
|
16
|
+
"@trackunit/iris-app-runtime-core": "1.13.54-alpha-ae1ff73fc64.0",
|
|
17
|
+
"@trackunit/iris-app-runtime-core-api": "1.12.52-alpha-ae1ff73fc64.0",
|
|
18
|
+
"@trackunit/react-table-base-components": "1.14.10-alpha-ae1ff73fc64.0",
|
|
19
|
+
"@trackunit/react-table": "1.14.18-alpha-ae1ff73fc64.0",
|
|
20
20
|
"@tanstack/react-table": "^8.20.6",
|
|
21
|
-
"@trackunit/react-components": "1.18.
|
|
22
|
-
"@trackunit/react-core-hooks": "1.12.
|
|
23
|
-
"@trackunit/react-graphql-hooks": "1.15.
|
|
24
|
-
"@trackunit/iris-app-api": "1.14.
|
|
21
|
+
"@trackunit/react-components": "1.18.10-alpha-ae1ff73fc64.0",
|
|
22
|
+
"@trackunit/react-core-hooks": "1.12.57-alpha-ae1ff73fc64.0",
|
|
23
|
+
"@trackunit/react-graphql-hooks": "1.15.16-alpha-ae1ff73fc64.0",
|
|
24
|
+
"@trackunit/iris-app-api": "1.14.72-alpha-ae1ff73fc64.0",
|
|
25
25
|
"@graphql-codegen/cli": "^5.0.3",
|
|
26
26
|
"@graphql-typed-document-node/core": "^3.2.0",
|
|
27
27
|
"graphql": "^16.10.0"
|