@monolith-forensics/monolith-ui 1.2.76 → 1.2.77

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.
@@ -150,10 +150,9 @@ const TableProvider = (_a) => {
150
150
  });
151
151
  };
152
152
  const searchData = (searchText) => {
153
+ const columnKeys = columnState.map((col) => col.dataField);
153
154
  return props.data.filter((row) => {
154
- return Object.keys(row)
155
- .filter((key) => key !== "__key" && key !== "__index")
156
- .some((key) => {
155
+ return columnKeys.some((key) => {
157
156
  if (typeof row[key] === "string") {
158
157
  return row[key].toLowerCase().includes(searchText.toLowerCase());
159
158
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monolith-forensics/monolith-ui",
3
- "version": "1.2.76",
3
+ "version": "1.2.77",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Matt Danner (Monolith Forensics LLC)",