mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +08:00
fix unable to detach PCI & USB device in VM edit page (#247)
* fix unable to detach PCI & USB device in VM edit page Signed-off-by: Andy Lee <andy.lee@suse.com> * refactor based on comment Signed-off-by: Andy Lee <andy.lee@suse.com> * using set from shell/utils/object Signed-off-by: Andy Lee <andy.lee@suse.com> --------- Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
@@ -101,9 +101,7 @@ export default {
|
||||
...formatted,
|
||||
];
|
||||
|
||||
if (devices.length > 0) {
|
||||
set(this.value.domain.devices, 'hostDevices', devices);
|
||||
}
|
||||
set(this.value.domain.devices, 'hostDevices', devices);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user