Fix jwt-token
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user