mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-11 20:43:42 +08:00
fix delete ChatItem
This commit is contained in:
@@ -142,8 +142,7 @@ export const useChatStore = create<ChatStore>()(
|
||||
}
|
||||
|
||||
if (nextIndex === index) {
|
||||
nextIndex =
|
||||
nextIndex === sessions.length - 1 ? nextIndex - 1 : nextIndex;
|
||||
nextIndex === sessions.length - 1 ? nextIndex - 1 : nextIndex;
|
||||
} else {
|
||||
nextIndex = nextIndex > index ? nextIndex - 1 : nextIndex;
|
||||
}
|
||||
|
Reference in New Issue
Block a user