fix: pass prevValue in resetToDefault so conflict rejection correctly reverts keybind UI#4286
Conversation
… reverts keybind UI Fixes openfrontio#4285
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughTwo keybind bugs are fixed. ChangesKeybind reset and conflict detection fix
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed due to a network error. 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 |
Fixes #4285
What changed and why
resetToDefault()inSettingKeybind.tsdispatched achangeevent withoutprevValueorkey. The parent handler inUserSettingModal.tsuses: