mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 20:35:07 +03:00
updated code rabbit review
This commit is contained in:
1 parent
9bce140f50
commit
5d08e8ca90
1 file changed
+5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user