@trackunit/react-table-helpers 0.0.273 → 0.0.275

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 CHANGED
@@ -117,7 +117,10 @@ const useColumnDefinitionsFromCustomFieldDefinition = ({ customFieldDefinitions,
117
117
  customFieldDefinition.node.type) {
118
118
  const column = columnHelper.accessor(data => {
119
119
  var _a, _b, _c;
120
- return (_c = (_b = (_a = data.customFields) === null || _a === void 0 ? void 0 : _a.edges) === null || _b === void 0 ? void 0 : _b.find(field => { var _a, _b; return ((_a = field === null || field === void 0 ? void 0 : field.node) === null || _a === void 0 ? void 0 : _a.definition.definitionId) === ((_b = customFieldDefinition.node) === null || _b === void 0 ? void 0 : _b.id); })) === null || _c === void 0 ? void 0 : _c.node;
120
+ return (_c = (_b = (_a = data.customFields) === null || _a === void 0 ? void 0 : _a.edges) === null || _b === void 0 ? void 0 : _b.find(field => {
121
+ var _a, _b;
122
+ return ((_a = field === null || field === void 0 ? void 0 : field.node) === null || _a === void 0 ? void 0 : _a.definition.id) === ((_b = customFieldDefinition.node) === null || _b === void 0 ? void 0 : _b.id);
123
+ })) === null || _c === void 0 ? void 0 : _c.node;
121
124
  }, {
122
125
  header: customFieldDefinition.node.title,
123
126
  id: customFieldDefinition.node.id,
package/index.esm.js CHANGED
@@ -113,7 +113,10 @@ const useColumnDefinitionsFromCustomFieldDefinition = ({ customFieldDefinitions,
113
113
  customFieldDefinition.node.type) {
114
114
  const column = columnHelper.accessor(data => {
115
115
  var _a, _b, _c;
116
- return (_c = (_b = (_a = data.customFields) === null || _a === void 0 ? void 0 : _a.edges) === null || _b === void 0 ? void 0 : _b.find(field => { var _a, _b; return ((_a = field === null || field === void 0 ? void 0 : field.node) === null || _a === void 0 ? void 0 : _a.definition.definitionId) === ((_b = customFieldDefinition.node) === null || _b === void 0 ? void 0 : _b.id); })) === null || _c === void 0 ? void 0 : _c.node;
116
+ return (_c = (_b = (_a = data.customFields) === null || _a === void 0 ? void 0 : _a.edges) === null || _b === void 0 ? void 0 : _b.find(field => {
117
+ var _a, _b;
118
+ return ((_a = field === null || field === void 0 ? void 0 : field.node) === null || _a === void 0 ? void 0 : _a.definition.id) === ((_b = customFieldDefinition.node) === null || _b === void 0 ? void 0 : _b.id);
119
+ })) === null || _c === void 0 ? void 0 : _c.node;
117
120
  }, {
118
121
  header: customFieldDefinition.node.title,
119
122
  id: customFieldDefinition.node.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-table-helpers",
3
- "version": "0.0.273",
3
+ "version": "0.0.275",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -24,7 +24,7 @@ export type CustomFieldData = {
24
24
  definition: {
25
25
  title?: string | null;
26
26
  key?: string | null;
27
- definitionId?: string | null;
27
+ id?: string | null;
28
28
  };
29
29
  } | {
30
30
  valueId?: string | null;
@@ -33,7 +33,7 @@ export type CustomFieldData = {
33
33
  definition: {
34
34
  title?: string | null;
35
35
  key?: string | null;
36
- definitionId?: string | null;
36
+ id?: string | null;
37
37
  };
38
38
  } | {
39
39
  valueId?: string | null;
@@ -41,7 +41,7 @@ export type CustomFieldData = {
41
41
  definition: {
42
42
  title?: string | null;
43
43
  key?: string | null;
44
- definitionId?: string | null;
44
+ id?: string | null;
45
45
  };
46
46
  stringArrayValue?: string[] | null;
47
47
  } | {
@@ -51,7 +51,7 @@ export type CustomFieldData = {
51
51
  definition: {
52
52
  title?: string | null;
53
53
  key?: string | null;
54
- definitionId?: string | null;
54
+ id?: string | null;
55
55
  };
56
56
  } | {
57
57
  valueId?: string | null;
@@ -60,7 +60,7 @@ export type CustomFieldData = {
60
60
  definition: {
61
61
  title?: string | null;
62
62
  key?: string | null;
63
- definitionId?: string | null;
63
+ id?: string | null;
64
64
  };
65
65
  } | {
66
66
  valueId?: string | null;
@@ -69,7 +69,7 @@ export type CustomFieldData = {
69
69
  definition: {
70
70
  title?: string | null;
71
71
  key?: string | null;
72
- definitionId?: string | null;
72
+ id?: string | null;
73
73
  unitSi?: UnitSiType | null;
74
74
  unitUs?: UnitUsType | null;
75
75
  };
@@ -80,7 +80,7 @@ export type CustomFieldData = {
80
80
  definition: {
81
81
  title?: string | null;
82
82
  key?: string | null;
83
- definitionId?: string | null;
83
+ id?: string | null;
84
84
  };
85
85
  } | {
86
86
  valueId?: string | null;
@@ -89,7 +89,7 @@ export type CustomFieldData = {
89
89
  definition: {
90
90
  title?: string | null;
91
91
  key?: string | null;
92
- definitionId?: string | null;
92
+ id?: string | null;
93
93
  };
94
94
  } | {
95
95
  valueId?: string | null;
@@ -98,7 +98,7 @@ export type CustomFieldData = {
98
98
  definition: {
99
99
  title?: string | null;
100
100
  key?: string | null;
101
- definitionId?: string | null;
101
+ id?: string | null;
102
102
  };
103
103
  } | {
104
104
  valueId?: string | null;
@@ -107,7 +107,7 @@ export type CustomFieldData = {
107
107
  definition: {
108
108
  title?: string | null;
109
109
  key?: string | null;
110
- definitionId?: string | null;
110
+ id?: string | null;
111
111
  };
112
112
  };
113
113
  /**