@sphereon/ui-components.ssi-react 0.1.3-unstable.121 → 0.1.3-unstable.123

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.
@@ -91,14 +91,12 @@ const SSITableView = (props) => {
91
91
  };
92
92
  const onRowSelectionChange = (updatedRowSelection) => {
93
93
  const currentRowSelection = updatedRowSelection(toRowSelectionObject(rowSelection));
94
- const selection = [];
95
- for (const key in currentRowSelection) {
96
- const row = {
94
+ const selection = Object.keys(currentRowSelection).map((key) => {
95
+ return {
97
96
  rowId: key,
98
97
  rowData: data[Number(key)]
99
98
  };
100
- selection.push(row);
101
- }
99
+ });
102
100
  setRowSelection(selection);
103
101
  };
104
102
  const table = useReactTable({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sphereon/ui-components.ssi-react",
3
3
  "private": false,
4
- "version": "0.1.3-unstable.121+ab29ef3",
4
+ "version": "0.1.3-unstable.123+4f2aae1",
5
5
  "description": "SSI UI components for React",
6
6
  "repository": "git@github.com:Sphereon-Opensource/UI-Components.git",
7
7
  "author": "Sphereon <dev@sphereon.com>",
@@ -28,7 +28,7 @@
28
28
  "access": "public"
29
29
  },
30
30
  "dependencies": {
31
- "@sphereon/ui-components.core": "0.1.3-unstable.121+ab29ef3",
31
+ "@sphereon/ui-components.core": "0.1.3-unstable.123+4f2aae1",
32
32
  "@tanstack/react-table": "^8.9.3",
33
33
  "react-loader-spinner": "^5.4.5",
34
34
  "react-toastify": "^9.1.3",
@@ -42,5 +42,5 @@
42
42
  "peerDependencies": {
43
43
  "react": ">= 16.8.0"
44
44
  },
45
- "gitHead": "ab29ef31e90fc4609757edc0811278758a23c9d7"
45
+ "gitHead": "4f2aae1bf891d3c14b0033dda1575e0cc66875ad"
46
46
  }