@itwin/itwinui-react 2.12.23 → 2.12.25

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.
@@ -269,7 +269,8 @@ export const Table = (props) => {
269
269
  // This is to avoid the old columnOrder from affecting the new columns' columnOrder
270
270
  React.useEffect(() => {
271
271
  // Check if columns have changed (by value)
272
- if (JSON.stringify(lastPassedColumns.current) !== JSON.stringify(columns)) {
272
+ if (lastPassedColumns.current.length > 0 &&
273
+ JSON.stringify(lastPassedColumns.current) !== JSON.stringify(columns)) {
273
274
  instance.setColumnOrder([]);
274
275
  }
275
276
  lastPassedColumns.current = columns;