apt repositories: avoid potential type error in classifyOrigin helper
with undefined (or otherwise falsy) argument. Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
78be60a079
commit
a14bafeca6
@ -406,6 +406,7 @@ Ext.define('Proxmox.node.APTRepositories', {
|
||||
product: 'Proxmox VE', // default
|
||||
|
||||
classifyOrigin: function(origin) {
|
||||
origin ||= '';
|
||||
if (origin.match(/^\s*Proxmox\s*$/i)) {
|
||||
return 'Proxmox';
|
||||
} else if (origin.match(/^\s*Debian\s*(:?Backports)?$/i)) {
|
||||
|
Loading…
Reference in New Issue
Block a user