diff --git a/src/store/conversations.js b/src/store/conversations.js index 6a5921b8..12e7a268 100644 --- a/src/store/conversations.js +++ b/src/store/conversations.js @@ -53,10 +53,15 @@ export default { }, actions: { loadConversations(context) { - getConversations(localStorage.getItem('subscriberId'), context.state.page, context.state.rows) - .then(result => { - context.commit('loadConversations', result); - }) + return new Promise((resolve, reject) => { + getConversations(localStorage.getItem('subscriberId'), context.state.page, context.state.rows) + .then((result) => { + context.commit('loadConversations', result); + resolve(); + }).catch((err)=>{ + reject(err); + }); + }); }, downloadVoiceMail(context, id) { context.commit('downloadVoiceMailRequesting');