From: Thomas Lamprecht Date: Wed, 30 Jun 2021 19:58:29 +0000 (+0200) Subject: node: repos: fallback to "Other" for unknown origin X-Git-Url: https://git.proxmox.com/?p=proxmox-widget-toolkit.git;a=commitdiff_plain;h=f0966f29308fb1905f982f88c7a4a224ab182a2d node: repos: fallback to "Other" for unknown origin Signed-off-by: Thomas Lamprecht --- diff --git a/src/node/APTRepositories.js b/src/node/APTRepositories.js index c5c47f4..baca834 100644 --- a/src/node/APTRepositories.js +++ b/src/node/APTRepositories.js @@ -329,6 +329,9 @@ Ext.define('Proxmox.node.APTRepositoriesGrid', { dataIndex: 'Origin', width: 120, renderer: (value, meta, rec) => { + if (typeof value !== 'string' || value.length === 0) { + value = gettext('Other'); + } let cls = 'fa fa-fw fa-question-circle-o'; if (value.match(/^\s*Proxmox\s*$/i)) { cls = 'pmx-itype-icon pmx-itype-icon-proxmox-x';