Skip to content

Commit e453f1c

Browse files
committed
feat(web): Removed unused var
1 parent 5e7743e commit e453f1c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/web/src/app/[domain]/repos/components/reposTable.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ interface ColumnsContext {
7979
currentSortBy?: string;
8080
currentSortOrder: string;
8181
onTriggerSync: (repoId: number) => void;
82-
syncingRepoId: number | null;
8382
}
8483

8584
export 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

Comments
 (0)