From c884061623c49d1a4550a67abe23d1ed516d23e8 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Sat, 25 Nov 2023 17:13:47 +0100 Subject: [PATCH] ui: avoid single-line if in optional-remote renderer Signed-off-by: Thomas Lamprecht --- www/Utils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/Utils.js b/www/Utils.js index d7f11cb6..8fbc6b23 100644 --- a/www/Utils.js +++ b/www/Utils.js @@ -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); },