Skip to content

Commit fc9704d

Browse files
committed
Update general settings form handling in huntarrUI
- Enhanced the generation of the general settings form to only pass the relevant general settings, improving clarity and functionality. - Added a console log for general settings to aid in debugging and ensure correct data loading.
1 parent b6b9e01 commit fc9704d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

frontend/static/js/new-main.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3807,10 +3807,11 @@ let huntarrUI = {
38073807
.then(response => response.json())
38083808
.then(settings => {
38093809
console.log('[huntarrUI] Loaded settings:', settings);
3810+
console.log('[huntarrUI] General settings:', settings.general);
38103811

3811-
// Generate the general settings form
3812+
// Generate the general settings form - pass only the general settings
38123813
if (typeof SettingsForms !== 'undefined' && SettingsForms.generateGeneralForm) {
3813-
SettingsForms.generateGeneralForm(generalSettings, settings);
3814+
SettingsForms.generateGeneralForm(generalSettings, settings.general || {});
38143815
} else {
38153816
console.error('[huntarrUI] SettingsForms not available');
38163817
generalSettings.innerHTML = '<p>Error: Settings forms not loaded</p>';

0 commit comments

Comments
 (0)