@etsoo/materialui 1.0.91 → 1.0.93
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/lib/pages/ViewPage.js +3 -3
- package/package.json +3 -3
- package/src/pages/ViewPage.tsx +1 -1
package/lib/pages/ViewPage.js
CHANGED
|
@@ -32,7 +32,7 @@ function getResp(singleRow) {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
function getItemField(field, data) {
|
|
35
|
-
var _a, _b;
|
|
35
|
+
var _a, _b, _c;
|
|
36
36
|
// Item data and label
|
|
37
37
|
let itemData, itemLabel, gridProps = {};
|
|
38
38
|
if (Array.isArray(field)) {
|
|
@@ -60,12 +60,12 @@ function getItemField(field, data) {
|
|
|
60
60
|
typeof fieldLabel === 'function'
|
|
61
61
|
? fieldLabel()
|
|
62
62
|
: fieldLabel != null
|
|
63
|
-
? globalApp.get(fieldLabel)
|
|
63
|
+
? (_b = globalApp.get(fieldLabel)) !== null && _b !== void 0 ? _b : fieldLabel
|
|
64
64
|
: fieldLabel;
|
|
65
65
|
}
|
|
66
66
|
else {
|
|
67
67
|
itemData = formatItemData(data[field]);
|
|
68
|
-
itemLabel = (
|
|
68
|
+
itemLabel = (_c = globalApp.get(field)) !== null && _c !== void 0 ? _c : field;
|
|
69
69
|
}
|
|
70
70
|
return [itemData, itemLabel, gridProps];
|
|
71
71
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/materialui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.93",
|
|
4
4
|
"description": "TypeScript Material-UI Implementation",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"@emotion/css": "^11.10.5",
|
|
52
52
|
"@emotion/react": "^11.10.5",
|
|
53
53
|
"@emotion/styled": "^11.10.5",
|
|
54
|
-
"@etsoo/appscript": "^1.3.
|
|
54
|
+
"@etsoo/appscript": "^1.3.43",
|
|
55
55
|
"@etsoo/notificationbase": "^1.1.18",
|
|
56
|
-
"@etsoo/react": "^1.6.
|
|
56
|
+
"@etsoo/react": "^1.6.33",
|
|
57
57
|
"@etsoo/shared": "^1.1.78",
|
|
58
58
|
"@mui/icons-material": "^5.10.16",
|
|
59
59
|
"@mui/material": "^5.10.16",
|
package/src/pages/ViewPage.tsx
CHANGED
|
@@ -171,7 +171,7 @@ function getItemField<T extends object>(
|
|
|
171
171
|
typeof fieldLabel === 'function'
|
|
172
172
|
? fieldLabel()
|
|
173
173
|
: fieldLabel != null
|
|
174
|
-
? globalApp.get<string>(fieldLabel)
|
|
174
|
+
? globalApp.get<string>(fieldLabel) ?? fieldLabel
|
|
175
175
|
: fieldLabel;
|
|
176
176
|
} else {
|
|
177
177
|
itemData = formatItemData(data[field]);
|