mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-03-28 17:42:45 +01:00
Fix issue where channel selector would show empty or missing channels after auto-refresh. The populateChannelSelector() function was clearing all options but not rebuilding them from API data correctly. Changes: - Rebuild entire dropdown from API response (including Public channel) - Use currentChannelIdx from global state for selection - Fallback to Public (index 0) if saved channel no longer exists - Remove unused variable (IDE warning fix) Bug: Channel selector showing empty after first auto-refresh Root cause: API returns ALL channels including Public at index 0, but the function was clearing all options and not adding them back. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>