Add currency auto transform (#83)

Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
GermeyandAceDataCloud authored and GitHub committed 2024-07-14 15:35:04 +08:00
1 parent 3f16b60071
commit c83b4fcc9f
21 files changed
+245 -22

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ export const setCredential = async ({ commit }: any, payload: ICredential): Prom
export const setConversation = async ({ commit, state }: any, payload: IChatConversation): Promise<void> => {
log(setConversation, 'set conversation', payload);
const conversations = state.conversations;
const conversations = state.conversations || [];
const index = conversations?.findIndex((conversation: IChatConversation) => conversation.id === payload.id);
if (index > -1) {
conversations[index] = payload;