Skip to content

Commit d1258b9

Browse files
committed
Drop redundant debounce clearTimeout in useAttribution
1 parent 880b2a7 commit d1258b9

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

hub-client/src/hooks/useAttribution.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,6 @@ export function useAttribution(
193193
useEffect(() => {
194194
if (!filePath || !mapRef.current) return;
195195

196-
// Clear any pending debounce
197-
if (debounceRef.current) {
198-
clearTimeout(debounceRef.current);
199-
}
200-
201196
debounceRef.current = setTimeout(() => {
202197
const handle = getFileHandle(filePath);
203198
if (!handle || !mapRef.current) return;

0 commit comments

Comments
 (0)