Skip to content

Commit

Permalink
fix: removed default loaders and versions
Browse files Browse the repository at this point in the history
  • Loading branch information
olwalkey committed Dec 27, 2024
1 parent 7a310d5 commit 04485fb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions resources/scripts/components/server/modrinth/DisplayMods.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ const ProjectSelector: React.FC<Props> = ({ appVersion, baseUrl, nonApiUrl }) =>
setIsLoading(true); // Start loading
try {
const facets = [
settings.loaders.length > 0
? settings.loaders.map((loader) => `categories:${loader}`)
: ['categories:paper', 'categories:fabric'],
settings.loaders.length > 0 ? settings.loaders.map((loader) => `categories:${loader}`) : null,
settings.versions.length > 0 ? settings.versions.map((version) => `versions:${version}`) : null,
settings.environments.length > 0
? settings.environments.map((environment) => `project_type:${environment}`)
Expand All @@ -54,7 +52,7 @@ const ProjectSelector: React.FC<Props> = ({ appVersion, baseUrl, nonApiUrl }) =>
});
const query = settings.searchTerms.replace(/ /g, '-');
const apiUrl = `${baseUrl}${apiEndpoints.projects}?${searchParams.toString()}&query=${query}`;
console.log('Constructed API URL:', apiUrl);
// console.log('Constructed API URL:', apiUrl);

const response = await fetch(apiUrl, {
headers: {
Expand Down

0 comments on commit 04485fb

Please sign in to comment.