Skip to content

Commit 1d16ec8

Browse files
fix: open contacts view in new tab when clicking participant chip (#2512)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: [email protected] <[email protected]>
1 parent 8f3c8c8 commit 1d16ec8

File tree

1 file changed

+3
-3
lines changed
  • apps/desktop/src/components/main/body/sessions/outer-header/metadata

1 file changed

+3
-3
lines changed

apps/desktop/src/components/main/body/sessions/outer-header/metadata/participants.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function useRemoveParticipant({
168168

169169
function ParticipantChip({ mappingId }: { mappingId: string }) {
170170
const details = useParticipantDetails(mappingId);
171-
const openCurrent = useTabs.getState().openCurrent;
171+
const openNew = useTabs.getState().openNew;
172172

173173
const assignedHumanId = details?.humanId;
174174
const sessionId = details?.sessionId;
@@ -181,12 +181,12 @@ function ParticipantChip({ mappingId }: { mappingId: string }) {
181181

182182
const handleClick = useCallback(() => {
183183
if (assignedHumanId) {
184-
openCurrent({
184+
openNew({
185185
type: "contacts",
186186
state: { selectedOrganization: null, selectedPerson: assignedHumanId },
187187
});
188188
}
189-
}, [openCurrent, assignedHumanId]);
189+
}, [openNew, assignedHumanId]);
190190

191191
if (!details) {
192192
return null;

0 commit comments

Comments
 (0)