Skip to content

Commit 2ba4836

Browse files
committed
fix(tables): surface CSV import error toast; remove dead hasRunningGroupExecution
1 parent d298930 commit 2ba4836

2 files changed

Lines changed: 1 addition & 9 deletions

File tree

apps/sim/hooks/queries/tables.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,7 @@ export function useImportCsvIntoTable() {
10021002
},
10031003
onError: (error) => {
10041004
logger.error('Failed to import CSV into table:', error)
1005+
toast.error(error.message, { duration: 5000 })
10051006
},
10061007
onSettled: (_data, _error, variables) => {
10071008
invalidateRowCount(queryClient, variables.tableId)

apps/sim/lib/table/deps.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,6 @@ export function isExecInFlight(exec: RowExecutionMetadata | undefined): boolean
2424
return false
2525
}
2626

27-
export function hasRunningGroupExecution(rows: TableRow[]): boolean {
28-
for (const row of rows) {
29-
for (const exec of Object.values(row.executions)) {
30-
if (isExecInFlight(exec)) return true
31-
}
32-
}
33-
return false
34-
}
35-
3627
/**
3728
* True when every output column the group writes still has a non-empty value
3829
* on this row. The "completed" exec status is metadata, but the cells are the

0 commit comments

Comments
 (0)