fix: update open research button text logic when has multiple ResearchCard in the message list

This commit is contained in:
Jiang Feng 2025-04-27 16:22:02 +08:00
parent ba1b60d538
commit 8410eb0aa3

View File

@ -268,7 +268,7 @@ function MessageListItem({
variant={!openResearchId ? "default" : "outline"}
onClick={handleOpen}
>
{!openResearchId ? "Open" : "Close"}
{researchId !== openResearchId ? "Open" : "Close"}
</Button>
</div>
</CardFooter>