We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbb5fd6 commit 427ec06Copy full SHA for 427ec06
src/interface/web/app/components/allConversations/allConversations.tsx
@@ -164,7 +164,12 @@ function deleteConversation(conversationId: string) {
164
})
165
.then((response) => {
166
response.json();
167
- mutate("/api/chat/sessions");
+ // If currently viewing the conversation, redirect to the home page
168
+ if (window.location.search.includes(`conversationId=${conversationId}`)) {
169
+ window.location.href = "/";
170
+ } else {
171
+ mutate("/api/chat/sessions");
172
+ }
173
174
.then((data) => { })
175
.catch((err) => {
0 commit comments