]> git.proxmox.com Git - pve-manager.git/commitdiff
fix #2810: reset state of mounts array in initComponent
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 24 Jun 2020 07:32:37 +0000 (09:32 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 24 Jun 2020 07:45:47 +0000 (09:45 +0200)
so that each new instance has an empty mounts list

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/lxc/FeaturesEdit.js

index 1275a2e04363e688e2dcaf9461668c475bd33a51..e0b851de996263bae3790826601530e5a5f54692 100644 (file)
@@ -108,7 +108,13 @@ Ext.define('PVE.lxc.FeaturesInputPanel', {
            }
            this.callParent([res]);
        }
-    }
+    },
+
+    initComponent: function() {
+       let me = this;
+       me.mounts = []; // reset state
+       me.callParent();
+    },
 });
 
 Ext.define('PVE.lxc.FeaturesEdit', {