From fadcf0f407fa750ffcaf3b79843a57b02b39fee2 Mon Sep 17 00:00:00 2001 From: Chuck <33324927+ChuckBuilds@users.noreply.github.com> Date: Fri, 16 Jan 2026 15:16:46 -0500 Subject: [PATCH] Fix/plugins manager syntax error (#191) * chore: Update basketball-scoreboard submodule for odds font fix * fix(plugins): Add missing closing brace in file-upload widget if block Fixed syntax error where the if statement starting at line 2949 was missing its closing brace before the else if statement. This caused 'Unexpected token else' error at line 3257 when parsing the loadCustomHtmlWidget function. The fix adds the missing closing brace at line 3048 to properly close the if block before the else if chain continues. --------- Co-authored-by: Chuck --- web_interface/static/v3/plugins_manager.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web_interface/static/v3/plugins_manager.js b/web_interface/static/v3/plugins_manager.js index c05fe043..45cbdcb4 100644 --- a/web_interface/static/v3/plugins_manager.js +++ b/web_interface/static/v3/plugins_manager.js @@ -3163,8 +3163,9 @@ function generateFieldHtml(key, prop, value, prefix = '') { data-upload-endpoint="${customUploadEndpoint || '/api/v3/plugins/assets/upload'}" data-file-type="${fileType}"> - `; - } else if (xWidgetValue === 'checkbox-group' || xWidgetValue2 === 'checkbox-group') { + `; + } + } else if (xWidgetValue === 'checkbox-group' || xWidgetValue2 === 'checkbox-group') { // Checkbox group widget for multi-select arrays with enum items // Use _data hidden input pattern to serialize selected values correctly console.log(`[DEBUG] ✅ Detected checkbox-group widget for ${fullKey} - rendering checkboxes`);