chore: fixes

This commit is contained in:
Sojan Jose
2025-06-05 05:26:14 +00:00
committed by GitHub
parent 6150b7cc61
commit cce046b419
4 changed files with 12 additions and 2 deletions
@@ -327,10 +327,11 @@ const actions = {
}
},
deleteConversation: async ({ commit }, conversationId) => {
deleteConversation: async ({ commit, dispatch }, conversationId) => {
try {
await ConversationApi.delete(conversationId);
commit(types.DELETE_CONVERSATION, conversationId);
dispatch('conversationStats/get', {}, { root: true });
} catch (error) {
throw new Error(error);
}