diff --git a/src/app.tsx b/src/app.tsx index 7af532c..3f3e91b 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -164,7 +164,8 @@ export function App() { } // find nex selected chat index - const next = newAllChatStoreIndexes[0]; + const next = + newAllChatStoreIndexes[newAllChatStoreIndexes.length - 1]; console.log("next is", next); setSelectedChatIndex(next);