fix: Cannot read properties of null (reading 'id')

This commit is contained in:
Shivam Mishra
2024-10-10 16:47:54 +05:30
parent 5e2fb59302
commit 17f66f6f9b
@@ -49,7 +49,7 @@ export const mutations = {
[types.DELETE_CONTACT]: ($state, id) => {
const index = $state.sortOrder.findIndex(item => item === id);
$state.sortOrder.splice(index, 1);
$state.records[id] = null;
delete $state.records[id];
},
[types.UPDATE_CONTACTS_PRESENCE]: ($state, data) => {