Skip to content

Commit 09d3ede

Browse files
committed
chore: copilot
1 parent 0a570dd commit 09d3ede

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

packages/compass-indexes/src/hooks/use-index-progress.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ export function useIndexProgress(inProgressIndexes: InProgressIndex[]) {
3838
void dispatch(getIndexesProgress(indexesToTrack)).finally(() => {
3939
if (timeoutRef.current) {
4040
// After the first 3 checks, slow down the poller
41-
setTimeout(updateIndexProgress, INDEX_PROGRESS_POLLING_INTERVAL_MS);
41+
timeoutRef.current = +setTimeout(
42+
updateIndexProgress,
43+
INDEX_PROGRESS_POLLING_INTERVAL_MS
44+
);
4245
}
4346
});
4447
};

packages/compass-indexes/src/modules/regular-indexes.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,11 +669,10 @@ export const getIndexesProgress = (
669669
}
670670
}
671671
}
672-
} catch (err) {
672+
} catch {
673673
// If we can't get progress, the UI will continue with existing progress
674674
// This ensures the UI doesn't break if currentOp fails
675675
// Using void to indicate intentionally ignoring this error
676-
void err;
677676
}
678677
};
679678
};

0 commit comments

Comments
 (0)