@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
|
|
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
|
}
|