TT#35253 Conversations: Uncaught promise error bug

Change-Id: I9126810f2738306955fde8ce1ef8d9241441539f
changes/56/20156/2
raxelsen 8 years ago
parent 5503be27a3
commit a8aff87f1e

@ -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');

Loading…
Cancel
Save