diff --git a/static/webui/script.js b/static/webui/script.js index 2e45ff4d..36b610a2 100644 --- a/static/webui/script.js +++ b/static/webui/script.js @@ -1092,6 +1092,7 @@ function doAddAllMods() { } modsAll = Array.from(modsAll); + // Batch to avoid PayloadTooLargeError const batches = []; for (let i = 0; i < modsAll.length; i += 1000) { batches.push(modsAll.slice(i, i + 1000));