File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
packages/compass-indexes/src Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff 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 } ;
Original file line number Diff line number Diff 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} ;
You can’t perform that action at this time.
0 commit comments