File tree Expand file tree Collapse file tree
apps/sim/app/workspace/[workspaceId]/tables
components/import-csv-dialog Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -325,10 +325,9 @@ export function ImportCsvDialog({
325325 void cancelTableImport ( workspaceId , table . id , data . importId ) . catch ( ( ) => { } )
326326 }
327327 } ,
328- onError : ( err ) => {
328+ onError : ( ) => {
329+ // The hook's onError surfaces the toast; just clear the tray indicator here.
329330 useImportTrayStore . getState ( ) . endUpload ( table . id )
330- toast . error ( getErrorMessage ( err , 'Failed to start import' ) )
331- logger . error ( 'Async CSV import failed to start' , err )
332331 } ,
333332 }
334333 )
Original file line number Diff line number Diff line change @@ -455,10 +455,9 @@ export function Tables() {
455455 useImportTrayStore . getState ( ) . cancel ( result . tableId )
456456 void cancelTableImport ( workspaceId , result . tableId , result . importId ) . catch ( ( ) => { } )
457457 }
458- } catch ( err ) {
458+ } catch {
459+ // The hook's onError surfaces the toast; just clear the tray indicator here.
459460 useImportTrayStore . getState ( ) . endUpload ( pendingId )
460- toast . error ( `Failed to import ${ file . name } ` )
461- logger . error ( 'Error uploading CSV:' , err )
462461 }
463462 }
464463
You can’t perform that action at this time.
0 commit comments