chore: Update the usage with camel case

This commit is contained in:
iamsivin
2024-11-07 20:46:29 +05:30
parent 314a33e053
commit c5974f97cd
8 changed files with 67 additions and 37 deletions
@@ -4,6 +4,12 @@ export const getters = {
getContacts($state) {
return $state.sortOrder.map(contactId => $state.records[contactId]);
},
getContactsList($state) {
const contacts = $state.sortOrder.map(
contactId => $state.records[contactId]
);
return camelcaseKeys(contacts, { deep: true });
},
getUIFlags($state) {
return $state.uiFlags;
},
@@ -13,7 +19,7 @@ export const getters = {
},
getContactById: $state => id => {
const contact = $state.records[id];
return camelcaseKeys(contact || {});
return camelcaseKeys(contact || {}, { deep: true });
},
getMeta: $state => {
return $state.meta;