+
{filterLoaders.length > 0 ? (
loader.name)}
diff --git a/resources/scripts/components/server/modrinth/ModrinthContainer.tsx b/resources/scripts/components/server/modrinth/ModrinthContainer.tsx
index 16ef65f8f..e0a639968 100644
--- a/resources/scripts/components/server/modrinth/ModrinthContainer.tsx
+++ b/resources/scripts/components/server/modrinth/ModrinthContainer.tsx
@@ -1,7 +1,6 @@
import { useEffect, useState } from 'react';
import { toast } from 'sonner';
-import { Checkbox } from '@/components/elements/CheckboxLabel';
import ContentBox from '@/components/elements/ContentBox';
import { ModBox } from '@/components/elements/ModBox';
import PageContentBlock from '@/components/elements/PageContentBlock';
@@ -10,7 +9,7 @@ import ProjectSelector from './DisplayMods';
import EnvironmentSelector from './EnvironmentSelector';
import GameVersionSelector from './GameVersionSelector';
import LoaderSelector from './LoaderSelector';
-import { apiEndpoints } from './config';
+import { fetchNewProjects } from './config';
export default () => {
const [appVersion, setAppVersion] = useState(null);
@@ -65,7 +64,7 @@ export default () => {
updateSettings('loaders', selectedLoaders)}
+ // onSelectionChange={(selectedLoaders) => updateSettings('loaders', selectedLoaders)}
/>
@@ -75,7 +74,7 @@ export default () => {
updateSettings('versions', selectedVersions)}
+ // onSelectionChange={(selectedVersions) => updateSettings('versions', selectedVersions)}
/>
@@ -96,7 +95,7 @@ export default () => {
className='p-8 bg-[#ffffff09] border-[1px] border-[#ffffff11] shadow-sm rounded-xl w-full md:w-4/5'
title='Modrinth'
>
-
+
diff --git a/resources/scripts/components/server/modrinth/config.ts b/resources/scripts/components/server/modrinth/config.ts
index f27ad3df9..23e282a02 100644
--- a/resources/scripts/components/server/modrinth/config.ts
+++ b/resources/scripts/components/server/modrinth/config.ts
@@ -19,3 +19,11 @@ export const fetchHeaders = (appVersion) => ({
'Content-Type': 'application/json',
'User-Agent': `pyrohost/pyrodactyl/${appVersion} (pyro.host)`,
});
+
+// Function to programmatically click the button with id 'fetchNewProjects'
+export const fetchNewProjects = () => {
+ const button = document.getElementById('fetchNewProjects');
+ if (button) {
+ button.click();
+ }
+};