From ae37b3ed4da92d5e276908faeb34255ee93e09fc Mon Sep 17 00:00:00 2001 From: Mechiel Lukkien Date: Sun, 12 Nov 2023 22:04:48 +0100 Subject: [PATCH] webadmin: don't on queue page when there are no transports and the queue is non-empty (typical case) --- webadmin/admin.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webadmin/admin.html b/webadmin/admin.html index eba983f..bfaa38c 100644 --- a/webadmin/admin.html +++ b/webadmin/admin.html @@ -1972,7 +1972,7 @@ const queueList = async () => { transport=dom.select( attr({title: 'Transport to use for delivery attempts. The default is direct delivery, connecting to the MX hosts of the domain.'}), dom.option('(default)', attr({value: ''})), - Object.keys(transports).sort().map(t => dom.option(t, m.Transport === t ? attr({checked: ''}) : [])), + Object.keys(transports || []).sort().map(t => dom.option(t, m.Transport === t ? attr({checked: ''}) : [])), ), ' ', dom.button('Retry now'),