Fix: An error occurred when deleting a new conversation #3898 (#3900)

### What problem does this PR solve?

Fix: An error occurred when deleting a new conversation #3898

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu
2024-12-06 14:24:41 +08:00
committed by GitHub
parent f576c555e4
commit f189452446
4 changed files with 16 additions and 14 deletions

View File

@ -328,17 +328,19 @@ const Chat = () => {
{x.name}
</Text>
</div>
{conversationActivated === x.id && x.id !== '' && (
<section>
<Dropdown
menu={{ items: buildConversationItems(x.id) }}
>
<ChatAppCube
className={styles.cubeIcon}
></ChatAppCube>
</Dropdown>
</section>
)}
{conversationActivated === x.id &&
x.id !== '' &&
!x.is_new && (
<section>
<Dropdown
menu={{ items: buildConversationItems(x.id) }}
>
<ChatAppCube
className={styles.cubeIcon}
></ChatAppCube>
</Dropdown>
</section>
)}
</Flex>
</Card>
))}