node: repos: handle that components can be undefined
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
38c1f53f83
commit
65f4704b62
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user