react-live-data-table 1.1.1 → 1.1.2
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/package.json +1 -1
- package/src/ReactDataTable.jsx +1 -2
package/package.json
CHANGED
package/src/ReactDataTable.jsx
CHANGED
@@ -267,7 +267,6 @@ function ReactDataTable({
|
|
267
267
|
}
|
268
268
|
}, [selected]);
|
269
269
|
|
270
|
-
// Initialize column widths array - FIXED: Added enhancedColumns dependency
|
271
270
|
useEffect(() => {
|
272
271
|
const allColumns = enhancedColumns;
|
273
272
|
|
@@ -283,7 +282,7 @@ function ReactDataTable({
|
|
283
282
|
// Store in our ref for persistence
|
284
283
|
persistedColumnWidthsRef.current = [...initialWidths];
|
285
284
|
}
|
286
|
-
}, [showCheckbox]);
|
285
|
+
}, [showCheckbox, hasAnySubTableData]);
|
287
286
|
|
288
287
|
useEffect(() => {
|
289
288
|
setData({ pages: [], meta: { totalPages: 1 } });
|