diff --git a/js/modules/debuglogs.js b/js/modules/debuglogs.js index a753f104d..f7173af43 100644 --- a/js/modules/debuglogs.js +++ b/js/modules/debuglogs.js @@ -26,8 +26,8 @@ exports.upload = async (content) => { const { fields, url } = signedForm.body; const form = new FormData(); + // The API expects `key` to be the first field: form.append('key', fields.key); - Object.entries(fields) .filter(([key]) => key !== 'key') .forEach(([key, value]) => {