Skip to content

Remove console statements introduced in #7715 #8899

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions components/dashboard/src/components/RepositoryFinder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,9 @@ export async function refreshSearchData(query: string, user: User | undefined):

// Fetch all possible search results and cache them into local storage
async function actuallyRefreshSearchData(query: string, user: User | undefined): Promise<boolean> {
console.log("refreshing search data");
const oldData = loadSearchData();
const newData = await getGitpodService().server.getSuggestedContextURLs();
if (JSON.stringify(oldData) !== JSON.stringify(newData)) {
console.log("new data:", newData);
saveSearchData(newData);
return true;
}
Expand All @@ -190,6 +188,5 @@ async function findResults(query: string, onResults: (results: string[]) => void
searchData.push(query);
}
} catch {}
// console.log('searching', query, 'in', searchData);
onResults(searchData.filter((result) => result.toLowerCase().includes(query.toLowerCase())));
}