Skip to content

Commit 4ab5406

Browse files
ThomasK33Test
andauthored
🤖 fix: focus Review panel when switching with Cmd+2 (#505)
Co-authored-by: Test <test@example.com>
1 parent ce69a5c commit 4ab5406

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/components/RightSidebar.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,8 @@ const RightSidebarComponent: React.FC<RightSidebarProps> = ({
114114
setSelectedTab("costs");
115115
} else if (matchesKeybind(e, KEYBINDS.REVIEW_TAB)) {
116116
e.preventDefault();
117-
// If already on Review tab, focus the panel
118-
if (selectedTab === "review") {
119-
setFocusTrigger((prev) => prev + 1);
120-
} else {
121-
setSelectedTab("review");
122-
}
117+
setSelectedTab("review");
118+
setFocusTrigger((prev) => prev + 1);
123119
}
124120
};
125121

0 commit comments

Comments
 (0)