fix: always show profile switcher in sidebar (#2)
ProfileSwitcher was hidden when only one profile existed, making it impossible to access "Manage Profiles" to create additional profiles. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
732302cb44
commit
404478ff65
1 changed files with 0 additions and 2 deletions
|
|
@ -25,8 +25,6 @@ export default function ProfileSwitcher() {
|
||||||
return () => document.removeEventListener("mousedown", handleClick);
|
return () => document.removeEventListener("mousedown", handleClick);
|
||||||
}, [open]);
|
}, [open]);
|
||||||
|
|
||||||
if (profiles.length <= 1) return null;
|
|
||||||
|
|
||||||
const handleSelect = (profile: Profile) => {
|
const handleSelect = (profile: Profile) => {
|
||||||
setOpen(false);
|
setOpen(false);
|
||||||
if (profile.id === activeProfile?.id) return;
|
if (profile.id === activeProfile?.id) return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue