Skip to content

Commit

Permalink
Fix mod list being updated only when new mods are added
Browse files Browse the repository at this point in the history
  • Loading branch information
mircearoata committed Oct 15, 2024
1 parent f1d2a5c commit 577ec3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/lib/components/mods-list/ModsList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
try {
const result = await client.query(GetModCountDocument, {}, { requestPolicy: 'network-only' }).toPromise();
const count = result.data?.getMods.count;
if (count && count !== onlineMods.length) {
if (count) {
fetchingMods = true;
const pages = Math.ceil(count / MODS_PER_PAGE);
Expand Down

0 comments on commit 577ec3d

Please sign in to comment.