ui: traffic-control view: time frames are optional so avoid render exception

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-11-20 21:54:22 +01:00
parent 188a37fbed
commit 07a579c632
1 changed files with 1 additions and 1 deletions

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