@@ -79,7 +79,6 @@ interface ColumnsContext {
7979 currentSortBy ?: string ;
8080 currentSortOrder : string ;
8181 onTriggerSync : ( repoId : number ) => void ;
82- syncingRepoId : number | null ;
8382}
8483
8584export const getColumns = ( context : ColumnsContext ) : ColumnDef < Repo > [ ] => [
@@ -287,7 +286,6 @@ export const ReposTable = ({
287286 const [ rowSelection , setRowSelection ] = useState ( { } )
288287 const [ searchValue , setSearchValue ] = useState ( initialSearch )
289288 const [ isPendingSearch , setIsPendingSearch ] = useState ( false )
290- const [ syncingRepoId , setSyncingRepoId ] = useState < number | null > ( null )
291289 const searchInputRef = useRef < HTMLInputElement > ( null )
292290 const router = useRouter ( ) ;
293291 const searchParams = useSearchParams ( ) ;
@@ -351,7 +349,6 @@ export const ReposTable = ({
351349 } ;
352350
353351 const handleTriggerSync = async ( repoId : number ) => {
354- setSyncingRepoId ( repoId ) ;
355352 const response = await indexRepo ( repoId ) ;
356353
357354 if ( ! isServiceError ( response ) ) {
@@ -365,8 +362,6 @@ export const ReposTable = ({
365362 description : `❌ Failed to sync repository. ${ response . message } ` ,
366363 } ) ;
367364 }
368-
369- setSyncingRepoId ( null ) ;
370365 } ;
371366
372367 const totalPages = Math . ceil ( totalCount / pageSize ) ;
@@ -375,8 +370,7 @@ export const ReposTable = ({
375370 onSortChange : handleSortChange ,
376371 currentSortBy : initialSortBy ,
377372 currentSortOrder : initialSortOrder ,
378- onTriggerSync : handleTriggerSync ,
379- syncingRepoId : syncingRepoId ,
373+ onTriggerSync : handleTriggerSync
380374 } ) ;
381375
382376 const table = useReactTable ( {
0 commit comments