Skip to content

Commit 2430990

Browse files
committed
Fix - No results displayed on search list when triggering valid search for the first time
1 parent 99e31a5 commit 2430990

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

src/hooks/useFastSearchFromOptions.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -160,24 +160,6 @@ function useFastSearchFromOptions(
160160
throw error;
161161
}
162162
});
163-
164-
return () => {
165-
try {
166-
if (newFastSearch) {
167-
Log.info('[CMD_K_DEBUG] FastSearch tree cleanup', false, {
168-
actionId,
169-
timestamp: Date.now(),
170-
});
171-
newFastSearch.dispose();
172-
}
173-
} catch (error) {
174-
Log.alert('[CMD_K_FREEZE] FastSearch tree cleanup failed', {
175-
actionId,
176-
error: String(error),
177-
timestamp: Date.now(),
178-
});
179-
}
180-
};
181163
}, [options]);
182164

183165
useEffect(() => () => prevFastSearchRef.current?.dispose(), []);

0 commit comments

Comments
 (0)