mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 20:32:46 +08:00
fix: #641 delete wrong chat list
This commit is contained in:
@@ -96,7 +96,7 @@ export function ChatList() {
|
||||
index={i}
|
||||
selected={i === selectedIndex}
|
||||
onClick={() => selectSession(i)}
|
||||
onDelete={chatStore.deleteSession}
|
||||
onDelete={() => chatStore.deleteSession(i)}
|
||||
/>
|
||||
))}
|
||||
{provided.placeholder}
|
||||
|
@@ -127,6 +127,7 @@
|
||||
width: 100vw;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
pointer-events: none;
|
||||
|
||||
.toast-content {
|
||||
max-width: 80vw;
|
||||
@@ -141,6 +142,7 @@
|
||||
margin-bottom: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
pointer-events: all;
|
||||
|
||||
.toast-action {
|
||||
padding-left: 20px;
|
||||
|
@@ -156,7 +156,7 @@ export function showToast(
|
||||
};
|
||||
|
||||
setTimeout(() => {
|
||||
close();
|
||||
// close();
|
||||
}, delay);
|
||||
|
||||
root.render(<Toast content={content} action={action} />);
|
||||
|
Reference in New Issue
Block a user