node: repos: handle that components can be undefined

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-07-04 19:09:42 +02:00
parent 38c1f53f83
commit 65f4704b62

View 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',