mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-06 08:54:32 +00:00
ui: qemu/OSTypeEdit: drop throwing an error on multiple widgets
we will have multiple panels with the same widget. Instead of raising an error in that case, simply ignore it, since we normally only want to set the default initially, not when users configured something else Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
9d0fc15540
commit
eb7075d05e
@ -37,7 +37,7 @@ Ext.define('PVE.qemu.OSTypeInputPanel', {
|
||||
if (widgets.length === 1) {
|
||||
widgets[0].setValue(newValue);
|
||||
} else {
|
||||
throw 'non unique widget :' + widget + ' in Wizard';
|
||||
// ignore multiple disks, we only want to set the type if there is a single disk
|
||||
}
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user