fix: [1095] キーコンフィグ画面の初期矢印色が想定通りにならない問題を修正#2118
Conversation
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📝 WalkthroughWalkthrough
ChangesKey Configuration Color Storage
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@js/danoni_main.js`:
- Around line 9545-9547: The baseGroupNum calculation uses || which treats a
valid 0 pattern as falsy and falls back incorrectly; update the expression in
the block that computes baseGroupNum (referencing storageObj,
g_keyObj.currentKey, keyCtrlPtn${g_keyObj.currentKey} and keyCtrlPtn) to use
nullish coalescing (??) instead of || so that 0 is preserved as a valid index
when g_keycons.colorGroupNum === -1; ensure both optional accesses use ?? to
fall back only on null/undefined.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
🔨 変更内容 / Details of Changes
1. キーコンフィグ画面の初期矢印色が想定通りにならない問題を修正
🔖 関連Issue, 変更理由 / Related Issues, Reason for Changes
PR feat: [1094] 色変化(ncolor_data)の0フレーム時の色をキーコンフィグ画面に一部反映する仕様を追加 #2117 の考慮漏れです。
📷 スクリーンショット / Screenshot
📝 その他コメント / Other Comments