From 837ae20ae7b1e8f5a198650dd5146f9ec2963ea4 Mon Sep 17 00:00:00 2001 From: Brian ONeill Date: Mon, 14 Oct 2024 13:30:33 -0400 Subject: [PATCH] js cleanup --- webpack/components/ProxmoxComputeSelectors.js | 2 +- webpack/components/ProxmoxServer/components/HardDisk.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/webpack/components/ProxmoxComputeSelectors.js b/webpack/components/ProxmoxComputeSelectors.js index 10a3706f7..093c58ef7 100644 --- a/webpack/components/ProxmoxComputeSelectors.js +++ b/webpack/components/ProxmoxComputeSelectors.js @@ -73,7 +73,7 @@ const ProxmoxComputeSelectors = { { value: 'unsafe', label: 'Write back unsafe' }, { value: 'none', label: 'No cache' }, ], - + proxmoxBackupsMap: [ { value: '1', label: 'Yes' }, { value: '0', label: 'No' }, diff --git a/webpack/components/ProxmoxServer/components/HardDisk.js b/webpack/components/ProxmoxServer/components/HardDisk.js index 4f80019a1..9b1600a49 100644 --- a/webpack/components/ProxmoxServer/components/HardDisk.js +++ b/webpack/components/ProxmoxServer/components/HardDisk.js @@ -29,7 +29,6 @@ const HardDisk = ({ const handleChange = e => { const { name, value } = e.target; const updatedKey = Object.keys(hdd).find(key => hdd[key].name === name); - if (updatedKey === 'controller') { const updatedDeviceInfo = createUniqueDevice('hard_disk', value); if (updatedDeviceInfo) {