diff --git a/src/store/modules/jobInvites.js b/src/store/modules/jobInvites.js index f1b8f1f..3b7fc4d 100644 --- a/src/store/modules/jobInvites.js +++ b/src/store/modules/jobInvites.js @@ -169,7 +169,7 @@ const mutations = { var item = state.jobInvitesFromMe.find(item => { return item.id === jobinvite.id }) - state.jobInvitesFromMe.splice(item, 1) + state.jobInvitesFromMe.splice(state.jobInvitesFromMe.indexOf(item), 1) } } diff --git a/src/store/modules/jobRequests.js b/src/store/modules/jobRequests.js index 51f9d4f..07b005a 100644 --- a/src/store/modules/jobRequests.js +++ b/src/store/modules/jobRequests.js @@ -169,7 +169,7 @@ const mutations = { var item = state.jobRequestsFromMe.find(item => { return item.id === jobrequest.id }) - state.jobRequestsFromMe.splice(item, 1) + state.jobRequestsFromMe.splice(state.jobRequestsFromMe.indexOf(item), 1) } }