Skip to content

Commit e9434cb

Browse files
fix(tables): keep copy/cut progress toast until the operation completes
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 3913b49 commit e9434cb

1 file changed

Lines changed: 3 additions & 0 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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2011,8 +2011,11 @@ export function TableGrid({
20112011
const isCopy = opts.verb === 'Copied'
20122012
const verbLower = isCopy ? 'copy' : 'cut'
20132013
const estimate = opts.estimatedCount
2014+
// duration:0 keeps the in-progress toast up through long page loads; it is
2015+
// dismissed explicitly on every settle path below.
20142016
const loadingToastId = toast({
20152017
message: `${isCopy ? 'Copying' : 'Cutting'} ${estimate.toLocaleString()} ${estimate === 1 ? 'row' : 'rows'}…`,
2018+
duration: 0,
20162019
})
20172020
let rowCount = 0
20182021
let truncated = false

0 commit comments

Comments
 (0)