Skip to content
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
2 changes: 2 additions & 0 deletions client/src/module/student/opensource/RepoDiscoveryPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import { useCopyToClipboard } from "../../../hooks/useCopyToClipboard";
import { queryKeys } from "../../../lib/query-keys";
import { SEO } from "../../../components/SEO";
import toast from "../../../components/ui/toast";
import { canonicalUrl } from "../../../lib/seo.utils";
import { PaginationControls } from "../../../components/ui/PaginationControls";
import type { OpenSourceRepo, Pagination, RepoRequest } from "../../../lib/types";
Expand Down Expand Up @@ -206,6 +207,7 @@

useEffect(() => {
if (deepLinkError) {
toast.error("Could not load the linked repository. It may not exist or has been removed.");
setSearchParams((prev) => {
const params = new URLSearchParams(prev);
params.delete("repo");
Expand Down Expand Up @@ -275,7 +277,7 @@
return languagesData || (Object.keys(LANGUAGE_COLORS) as string[]);
}, [languagesData]);

const isMyLanguagesActive = useMemo(() => {

Check warning on line 280 in client/src/module/student/opensource/RepoDiscoveryPage.tsx

View workflow job for this annotation

GitHub Actions / Lint Client

'isMyLanguagesActive' is assigned a value but never used
if (!inferredLanguages.length) return false;
if (selectedLanguage.length !== inferredLanguages.length) return false;

Expand All @@ -297,7 +299,7 @@
};
}, [repos, pagination]);

const applyLanguages = (langs: string[]) => {

Check warning on line 302 in client/src/module/student/opensource/RepoDiscoveryPage.tsx

View workflow job for this annotation

GitHub Actions / Lint Client

'applyLanguages' is assigned a value but never used
setSearchParams((prev) => {
const params = new URLSearchParams(prev);

Expand Down
Loading