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
1 changed files with 1 additions and 1 deletions

View File

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