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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "genesys-react-components",
|
|
3
|
-
"version": "0.4.1-devengage-1573-implementing-tables.
|
|
3
|
+
"version": "0.4.1-devengage-1573-implementing-tables.247",
|
|
4
4
|
"description": "A React component library containing standardized form elements.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -140,7 +140,7 @@ export default function DataTable(props: IProps) {
|
|
|
140
140
|
const [columnTypes, setColumnTypes] = useState({} as ColumnTypeCollection);
|
|
141
141
|
const [isFilterOpen, setIsFilterOpen] = useState(false);
|
|
142
142
|
|
|
143
|
-
//
|
|
143
|
+
// Reinit when rows change
|
|
144
144
|
useEffect(() => {
|
|
145
145
|
// Infer column types
|
|
146
146
|
if (props.rows.length > 0 && props.rows[0].cells.length > 0) {
|
|
@@ -184,7 +184,7 @@ export default function DataTable(props: IProps) {
|
|
|
184
184
|
setColumnTypes(newColumnTypes);
|
|
185
185
|
setParsedRows(props.rows);
|
|
186
186
|
}
|
|
187
|
-
}, []);
|
|
187
|
+
}, [props.rows]);
|
|
188
188
|
|
|
189
189
|
// Filter changed
|
|
190
190
|
useEffect(() => {
|