mirror of
https://github.com/supabase/supabase.git
synced 2026-10-12 04:45:08 +03:00
updated bug for edits
This commit is contained in:
1 parent
2b0bba51e6
commit
1421934f3c
1 file changed
+4
-2
@@ -146,9 +146,11 @@ export function useOnRowsChange(rows: SupaRow[]) {
|
||||
const { columnName, previousValue, identifiers } = lastEdit
|
||||
const table = snap.originalTable
|
||||
|
||||
showUndoToast('Cell edit undone', snap.cellEditHistory.length, 'success')
|
||||
// Optimistically show the remaining edit count assuming its complete
|
||||
showUndoToast('Cell edit undone', snap.cellEditHistory.length - 1, 'success')
|
||||
|
||||
// Defer mutation to avoid conflicts with React's rendering cycle
|
||||
// [Ali] Defer mutation to avoid conflicts with React's rendering cycle
|
||||
// If I left it the same way the cancelled and rendering logic throws errors
|
||||
const roleState = getImpersonatedRoleState()
|
||||
setTimeout(() => {
|
||||
mutateUndoTableRow({
|
||||
|
||||
Reference in new issue
Block a user