updated code rabbit review

This commit is contained in:
Ali Waseem committed 2026-01-22 15:00:32 -07:00
1 parent 9bce140f50
commit 5d08e8ca90
1 file changed
+5
+5
View File
@@ -80,6 +80,11 @@ export const createTableEditorTableState = ({
{ gridColumns: state.gridColumns }
)
// Clear undo history when switching to a different table to avoid cross-table undos
if (state.originalTable.id !== table.id) {
state.cellEditHistory = []
}
state.table = supaTable
state.gridColumns = gridColumns
state.originalTable = table