Fix jwt-token

This commit is contained in:
2025-09-07 17:04:32 +02:00
parent 3a4fdb9295
commit a879cd7487
3 changed files with 209 additions and 2 deletions

View File

@@ -566,9 +566,11 @@ const DeviceModal = ({ device, onClose, onSave }) => {
try {
if (device) {
// Update existing device - exclude read-only fields and filter out empty strings
// Update existing device - include coordinates and other editable fields
const updateData = {
name: formData.name,
geo_lat: formData.geo_lat ? parseFloat(formData.geo_lat) : null,
geo_lon: formData.geo_lon ? parseFloat(formData.geo_lon) : null,
location_description: formData.location_description || null,
notes: formData.notes || null
};