Skip to content

Commit 5fe7148

Browse files
committed
fix(tables): remove leftover AbortController from use-export-table
1 parent 5933877 commit 5fe7148

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/hooks/use-export-table.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,10 @@ export function useExportTable({
3030
const posthog = usePostHog()
3131
const [isExporting, setIsExporting] = useState(false)
3232
const isExportingRef = useRef(false)
33-
const abortControllerRef = useRef<AbortController | null>(null)
34-
35-
useEffect(() => {
36-
return () => {
37-
abortControllerRef.current?.abort()
38-
}
39-
}, [])
4033

4134
const handleExportTable = useCallback(async () => {
4235
if (!canExport || !workspaceId || !tableId || isExportingRef.current) return
4336

44-
abortControllerRef.current = new AbortController()
4537
isExportingRef.current = true
4638
setIsExporting(true)
4739

@@ -51,7 +43,6 @@ export function useExportTable({
5143
tableId,
5244
filter: queryOptions.filter,
5345
sort: queryOptions.sort,
54-
signal: abortControllerRef.current.signal,
5546
})
5647

5748
const filename = `${sanitizePathSegment(tableName?.trim() || 'table')}.csv`

0 commit comments

Comments
 (0)