@etsoo/materialui 1.0.91 → 1.0.92

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.
@@ -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 = (_b = globalApp.get(field)) !== null && _b !== void 0 ? _b : field;
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.91",
3
+ "version": "1.0.92",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -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]);