Fix blending style options list filter for iOS#5513
Fix blending style options list filter for iOS#5513
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughRefactors blending-option handling in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@wled00/data/index.js`:
- Around line 665-668: The fallback that sets bsSel.value = 0 should be applied
after state values are restored, because parseInfo() rebuilds options before
readState() assigns s.bs and a restored s.bs might be filtered-out causing an
empty value; locate the code manipulating the bs select (gId('bs') / bsSel,
bsOpts, and the parseInfo()/readState() sequence) and move the fallback logic
(the "if (!bsSel.value) bsSel.value = 0" line) to run after readState() (or
directly after the code that applies s.bs), and remove the unused bsCur variable
or use it appropriately so no unused locals remain.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 743d7a75-9946-455f-8045-27d6ad4e70a3
📒 Files selected for processing (1)
wled00/data/index.js
fixes #5498
tested and it fixes the issue on safari.
Summary by CodeRabbit
Bug Fixes
Refactor