diff --git a/frontend/src/components/DeviceForm.svelte b/frontend/src/components/DeviceForm.svelte index 237fece5..6f550a73 100644 --- a/frontend/src/components/DeviceForm.svelte +++ b/frontend/src/components/DeviceForm.svelte @@ -56,7 +56,7 @@ if (mode === 'add') { await pb.collection('devices').create(device); } else { - await pb.collection('devices').update(device.id); + await pb.collection('devices').update(device.id, device); } // show button with timeout @@ -178,7 +178,7 @@