Skip to content

Commit 8342607

Browse files
committed
fix(tables): abort cut on clipboard NotAllowedError to prevent silent cell deletion
1 parent 6f93d34 commit 8342607

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table-grid

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table-grid/table-grid.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2054,9 +2054,9 @@ export function TableGrid({
20542054
toast.error(
20552055
'Clipboard permission expired — press Cmd+X again immediately after selecting'
20562056
)
2057-
} else {
2058-
throw err
2057+
return
20592058
}
2059+
throw err
20602060
}
20612061
if (cutUpdates.length > 0) {
20622062
await chunkBatchUpdates(cutUpdates, batchUpdateAsyncRef.current)

0 commit comments

Comments
 (0)