]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
node: repos: handle that components can be undefined
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 4 Jul 2021 17:09:42 +0000 (19:09 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 4 Jul 2021 17:09:42 +0000 (19:09 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/node/APTRepositories.js

index 97878b3fef1d3a95960169562d3a8f0994d7e290..e8f807df19919c013dbd610a47b9ac14b81d78c5 100644 (file)
@@ -300,6 +300,9 @@ Ext.define('Proxmox.node.APTRepositoriesGrid', {
            header: gettext('Components'),
            dataIndex: 'Components',
            renderer: function(components, metaData, record) {
+               if (components === undefined) {
+                   return '';
+               }
                let err = '';
                if (components.length === 1) {
                    // FIXME: this should be a flag set to the actual repsotiories, i.e., a tristate
@@ -378,7 +381,6 @@ Ext.define('Proxmox.node.APTRepositoriesGrid', {
        },
     ],
 
-
     store: {
        model: 'apt-repolist',
        groupField: 'Path',