]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: avoid ||=
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 23 Nov 2020 19:12:56 +0000 (20:12 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 23 Nov 2020 19:12:56 +0000 (20:12 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/storage/Base.js

index c403d5d9cc04322b87b511c02f4ca51b1572f0e8..79b4a618ee517aedc498c490296357beb85fb1b6 100644 (file)
@@ -31,7 +31,7 @@ Ext.define('PVE.panel.StorageBase', {
            allowBlank: false
        });
 
-       me.column2 ||= [];
+       me.column2 = me.column2 || [];
        me.column2.unshift(
            {
                xtype: 'pveNodeSelector',
@@ -106,7 +106,7 @@ Ext.define('PVE.panel.StoragePruneInputPanel', {
                let panel = field.up('pveStoragePruneInputPanel');
                let anyValue = false;
                panel.query('pmxPruneKeepField').forEach(field => {
-                   anyValue ||= field.getValue() !== null;
+                   anyValue = anyValue || field.getValue() !== null;
                    field.setDisabled(newValue);
                });
                panel.down('component[name=no-keeps-hint]').setHidden(anyValue || newValue);