mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-11-22 00:27:38 +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:
1 parent
a5d4604dce
commit
2993ddb82c
3 files changed
+12
-8
No files matched your search
@@ -84,9 +84,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