mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-18 11:36:17 +00:00
Update virtual-machines.tsx
This commit is contained in:
@@ -577,17 +577,16 @@ export function VirtualMachines() {
|
|||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
description: encodeURIComponent(editedNotes),
|
description: editedNotes, // Send as-is, pvesh will handle encoding
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
// Update local state
|
|
||||||
setVMDetails({
|
setVMDetails({
|
||||||
...vmDetails,
|
...vmDetails,
|
||||||
config: {
|
config: {
|
||||||
...vmDetails.config,
|
...vmDetails.config,
|
||||||
description: encodeURIComponent(editedNotes),
|
description: editedNotes, // Store unencoded
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
setIsEditingNotes(false)
|
setIsEditingNotes(false)
|
||||||
|
|||||||
Reference in New Issue
Block a user