mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-09-11 12:25:42 +03:00
🔨 Improve search results accuracy
- Improved search performance by filtering out results with no hunks - Fixed bug that was causing incorrect search results to be displayed [src/routes/projects/[projectId]/search/+page.svelte] - Add a check to only add search results with hunks to the processedResults array
This commit is contained in:
parent
1cc7f93b8b
commit
196342537f
@ -22,7 +22,9 @@
|
||||
const result = await search({ projectId, query });
|
||||
for (const r of result) {
|
||||
const processedResult = await processSearchResult(r, query);
|
||||
processedResults = [...processedResults, processedResult];
|
||||
if (processedResult.hunks && processedResult.hunks.length > 0) {
|
||||
processedResults = [...processedResults, processedResult];
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user