fix: #641 delete wrong chat list

This commit is contained in:
Yidadaa
2023-04-09 23:41:16 +08:00
parent f1655f6bcb
commit ee3a9c24f6
4 changed files with 8 additions and 6 deletions

View File

@@ -96,7 +96,7 @@ export function ChatList() {
index={i}
selected={i === selectedIndex}
onClick={() => selectSession(i)}
onDelete={chatStore.deleteSession}
onDelete={() => chatStore.deleteSession(i)}
/>
))}
{provided.placeholder}