@appcorp/app-corp-vista 0.2.95 → 0.2.96
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.
|
@@ -98,11 +98,11 @@ var VistaTableBodyV1 = function (_a) {
|
|
|
98
98
|
!loading && tableBodyRows.length > 0 && (tableBodyRows === null || tableBodyRows === void 0 ? void 0 : tableBodyRows.map(function (row) {
|
|
99
99
|
var ref = (0, uuid_1.v4)();
|
|
100
100
|
return (react_1.default.createElement("tr", { key: ref, className: exports.rowClasses }, tableBodyCols.map(function (_a) {
|
|
101
|
-
var _b;
|
|
101
|
+
var _b, _c;
|
|
102
102
|
var key = _a.key, componentType = _a.componentType, expression = _a.expression;
|
|
103
103
|
var computedValue = '';
|
|
104
104
|
if (Array.isArray(key) && componentType === vista_table_type_1.VISTA_TABLE_CELL_TYPE.OBJECT) {
|
|
105
|
-
computedValue = row[key[0]][key[1]];
|
|
105
|
+
computedValue = (_b = row[key[0]]) === null || _b === void 0 ? void 0 : _b[key[1]];
|
|
106
106
|
}
|
|
107
107
|
else if (Array.isArray(key) && componentType === vista_table_type_1.VISTA_TABLE_CELL_TYPE.MULTIPLE_TEXT_LINES) {
|
|
108
108
|
if (expression) {
|
|
@@ -125,7 +125,7 @@ var VistaTableBodyV1 = function (_a) {
|
|
|
125
125
|
computedValue = row.id;
|
|
126
126
|
}
|
|
127
127
|
var reff = (0, uuid_1.v4)();
|
|
128
|
-
return (react_1.default.createElement(react_1.Fragment, { key: reff }, (
|
|
128
|
+
return (react_1.default.createElement(react_1.Fragment, { key: reff }, (_c = componentMap[componentType]) === null || _c === void 0 ? void 0 : _c.call(componentMap, computedValue, rowActions)));
|
|
129
129
|
})));
|
|
130
130
|
}))));
|
|
131
131
|
};
|