File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
apps/sim/app/workspace/[workspaceId]/tables/[tableId]/hooks Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff 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`
You can’t perform that action at this time.
0 commit comments