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 <chuck@example.com>
This commit is contained in:
Chuck
2026-01-16 15:16:46 -05:00
committed by GitHub
parent 71584d4361
commit fadcf0f407

View File

@@ -3163,8 +3163,9 @@ function generateFieldHtml(key, prop, value, prefix = '') {
data-upload-endpoint="${customUploadEndpoint || '/api/v3/plugins/assets/upload'}" data-upload-endpoint="${customUploadEndpoint || '/api/v3/plugins/assets/upload'}"
data-file-type="${fileType}"> data-file-type="${fileType}">
</div> </div>
`; `;
} 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 // Checkbox group widget for multi-select arrays with enum items
// Use _data hidden input pattern to serialize selected values correctly // Use _data hidden input pattern to serialize selected values correctly
console.log(`[DEBUG] ✅ Detected checkbox-group widget for ${fullKey} - rendering checkboxes`); console.log(`[DEBUG] ✅ Detected checkbox-group widget for ${fullKey} - rendering checkboxes`);