Add currency auto transform (#83)
Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
1 parent
3f16b60071
commit
c83b4fcc9f
21 files changed
+245
-22
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user