fix delete ChatItem

This commit is contained in:
zZOMZz
2023-04-29 01:49:25 +08:00
parent 2a49da6cca
commit 2102ea1bd8

View File

@@ -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;
}