Management / User: Fix duplicate keys error (#3012)
This commit is contained in:
parent
b1a34ee4d3
commit
6c9fee5499
@ -265,7 +265,7 @@ const RightColumn: FC<OwnProps & StateProps> = ({
|
|||||||
case RightColumnContent.AddingMembers:
|
case RightColumnContent.AddingMembers:
|
||||||
return (
|
return (
|
||||||
<AddChatMembers
|
<AddChatMembers
|
||||||
key={chatId!}
|
key={`add_chat_members_${chatId!}`}
|
||||||
chatId={chatId!}
|
chatId={chatId!}
|
||||||
isActive={isOpen && isActive}
|
isActive={isOpen && isActive}
|
||||||
onNextStep={handleAppendingChatMembers}
|
onNextStep={handleAppendingChatMembers}
|
||||||
@ -275,7 +275,7 @@ const RightColumn: FC<OwnProps & StateProps> = ({
|
|||||||
case RightColumnContent.ChatInfo:
|
case RightColumnContent.ChatInfo:
|
||||||
return (
|
return (
|
||||||
<Profile
|
<Profile
|
||||||
key={chatId!}
|
key={`profile_${chatId!}`}
|
||||||
chatId={chatId!}
|
chatId={chatId!}
|
||||||
topicId={isInsideTopic ? threadId : undefined}
|
topicId={isInsideTopic ? threadId : undefined}
|
||||||
profileState={profileState}
|
profileState={profileState}
|
||||||
@ -284,11 +284,18 @@ const RightColumn: FC<OwnProps & StateProps> = ({
|
|||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
case RightColumnContent.Search:
|
case RightColumnContent.Search:
|
||||||
return <RightSearch chatId={chatId!} threadId={threadId!} onClose={close} isActive={isOpen && isActive} />;
|
return (
|
||||||
|
<RightSearch
|
||||||
|
chatId={`right_search_${chatId!}`}
|
||||||
|
threadId={threadId!}
|
||||||
|
onClose={close}
|
||||||
|
isActive={isOpen && isActive}
|
||||||
|
/>
|
||||||
|
);
|
||||||
case RightColumnContent.Management:
|
case RightColumnContent.Management:
|
||||||
return (
|
return (
|
||||||
<Management
|
<Management
|
||||||
key={chatId!}
|
key={`management_${chatId!}`}
|
||||||
chatId={chatId!}
|
chatId={chatId!}
|
||||||
currentScreen={managementScreen}
|
currentScreen={managementScreen}
|
||||||
isPromotedByCurrentUser={isPromotedByCurrentUser}
|
isPromotedByCurrentUser={isPromotedByCurrentUser}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user