From eb7075d05ed7f4375eb548246afd8cf57971e053 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Wed, 22 Sep 2021 11:27:44 +0200 Subject: [PATCH] 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 --- www/manager6/qemu/OSTypeEdit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/manager6/qemu/OSTypeEdit.js b/www/manager6/qemu/OSTypeEdit.js index 438d7c6b..fad56e8a 100644 --- a/www/manager6/qemu/OSTypeEdit.js +++ b/www/manager6/qemu/OSTypeEdit.js @@ -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 } }, },