pixelize-design-library 2.2.161 → 2.2.162
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.
|
@@ -54,8 +54,8 @@ var useTable = function (_a) {
|
|
|
54
54
|
(0, react_1.useEffect)(function () {
|
|
55
55
|
var columnPreference = tablePreferences;
|
|
56
56
|
if (Array.isArray(columnPreference) && columnPreference.length > 0) {
|
|
57
|
-
var mergedColumns =
|
|
58
|
-
var prefCol =
|
|
57
|
+
var mergedColumns = columnPreference.map(function (originalCol) {
|
|
58
|
+
var prefCol = columns.find(function (c) { return c.id === originalCol.id; });
|
|
59
59
|
return prefCol
|
|
60
60
|
? mergeColumnWithPreference(originalCol, prefCol)
|
|
61
61
|
: __assign({}, originalCol);
|