]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: traffic-control view: time frames are optional so avoid render exception
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 20 Nov 2021 20:54:22 +0000 (21:54 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 20 Nov 2021 20:54:22 +0000 (21:54 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/config/TrafficControlView.js

index d4f0e15495be46181424164a5572b77fd6836c39..21dd77459accccb266a64921793d67b9a0683b9e 100644 (file)
@@ -178,7 +178,7 @@ Ext.define('PBS.config.TrafficControlView', {
        {
            header: gettext('Timeframes'),
            sortable: false,
-           renderer: (timeframes) => Ext.String.htmlEncode(timeframes.join('; ')),
+           renderer: tf => tf ? Ext.String.htmlEncode(tf.join('; ')) : '',
            dataIndex: 'timeframe',
            width: 200,
        },