vueless 1.4.2 → 1.4.3-beta.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "1.4.2",
3
+ "version": "1.4.3-beta.0",
4
4
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
5
5
  "author": "Johnny Grid <hello@vueless.com> (https://vueless.com)",
6
6
  "homepage": "https://vueless.com",
@@ -7,13 +7,11 @@ export function normalizeColumns(columns: Column[]): ColumnObject[] {
7
7
  }
8
8
 
9
9
  export function mapRowColumns(row: Row, columns: ColumnObject[]): RowData {
10
- const visibleKeys = new Set(columns.filter((col) => col.isShown !== false).map((col) => col.key));
11
-
12
10
  const result: RowData = {};
13
11
 
14
- for (const key of Object.keys(row)) {
15
- if (visibleKeys.has(key)) {
16
- result[key] = row[key];
12
+ for (const col of columns) {
13
+ if (col.isShown !== false) {
14
+ result[col.key] = row[col.key];
17
15
  }
18
16
  }
19
17