bug: veraltete Variablennamen ersetzt

This commit is contained in:
Technoir committed 2026-10-12 14:01:10 +02:00
1 parent ad942e38ff
commit 88be63384f
1 file changed
+1 -1
@@ -58,7 +58,7 @@ async function editItem(textElement) {
let formData = Object.fromEntries(new FormData(formElement));
console.log(`editing item ${id} with ${formData}`)
const response = await api.editItem(id, { itemName: formData.newName, itemAmount: formData.newAmount });
const response = await api.editItem(id, { itemName: formData.newItemName, itemAmount: formData.newItemAmount });
if (!response.ok) {
const json = await response.json();