Skip to content

fix: remove duplicate Configure Alerts webhook block in Budget modal#368

Open
vivekchand wants to merge 1 commit intomainfrom
fix/duplicate-configure-alerts
Open

fix: remove duplicate Configure Alerts webhook block in Budget modal#368
vivekchand wants to merge 1 commit intomainfrom
fix/duplicate-configure-alerts

Conversation

@vivekchand
Copy link
Copy Markdown
Owner

Problem

Two identical Configure Alerts sections existed in the budget-tab-alerts panel with duplicate IDs:

  • alert-webhook-url
  • alert-slack-url
  • alert-discord-url

This caused getElementById to silently use the first element only, breaking webhook config save/load — values entered in the second (visible) block were never read.

Fix

Removed the duplicate block (18 lines). The first instance is retained; all JS references (getElementById) now correctly target a single element.

Testing

  • python3 -c "import dashboard; print('OK')" passes clean
  • Only one instance of each ID now exists in the file

Duplicate Configure Alerts section (with duplicate IDs alert-webhook-url,
alert-slack-url, alert-discord-url) caused getElementById to only find the
first element, breaking webhook config save/load in the budget-tab-alerts panel.

Removed the redundant second block (lines ~2859-2874).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant