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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-live-data-table",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Your React component package with Tailwind",
5
5
  "main": "src/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -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]); // FIXED: Added enhancedColumns dependency
285
+ }, [showCheckbox, hasAnySubTableData]);
287
286
 
288
287
  useEffect(() => {
289
288
  setData({ pages: [], meta: { totalPages: 1 } });