genesys-react-components 0.4.1-devengage-1573-implementing-tables.246 → 0.4.1-devengage-1573-implementing-tables.247
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/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/src/datatable/DataTable.tsx +2 -2
package/build/index.js
CHANGED
|
@@ -6414,7 +6414,7 @@ function DataTable(props) {
|
|
|
6414
6414
|
const [colsort, setColsort] = useState({ sort: 'none' });
|
|
6415
6415
|
const [columnTypes, setColumnTypes] = useState({});
|
|
6416
6416
|
const [isFilterOpen, setIsFilterOpen] = useState(false);
|
|
6417
|
-
//
|
|
6417
|
+
// Reinit when rows change
|
|
6418
6418
|
useEffect(() => {
|
|
6419
6419
|
// Infer column types
|
|
6420
6420
|
if (props.rows.length > 0 && props.rows[0].cells.length > 0) {
|
|
@@ -6458,7 +6458,7 @@ function DataTable(props) {
|
|
|
6458
6458
|
setColumnTypes(newColumnTypes);
|
|
6459
6459
|
setParsedRows(props.rows);
|
|
6460
6460
|
}
|
|
6461
|
-
}, []);
|
|
6461
|
+
}, [props.rows]);
|
|
6462
6462
|
// Filter changed
|
|
6463
6463
|
useEffect(() => {
|
|
6464
6464
|
const r = filterRows();
|