5
0
mirror of git://git.proxmox.com/git/proxmox-backup.git synced 2025-01-10 01:18:06 +03:00

ui: avoid single-line if in optional-remote renderer

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-11-25 17:13:47 +01:00
parent 535ca853c2
commit c884061623

View File

@ -712,7 +712,9 @@ Ext.define('PBS.Utils', {
},
render_optional_remote: function(value, metadata, record) {
if (!value) return `- (${gettext('Local')})`;
if (!value) {
return `- (${gettext('Local')})`;
}
return Ext.String.htmlEncode(value);
},