Fix: Todo Multi refresh ...
fix some promises problem
This commit is contained in:
@@ -183,16 +183,16 @@ namespace Actions {
|
||||
let options = null
|
||||
|
||||
// If is not already stored in DB, then show the message to the user.
|
||||
// if (!state.wasAlreadySubscribed) {
|
||||
if (!state.wasAlreadySubscribed) {
|
||||
options = {
|
||||
title: translate('notification.title_subscribed'),
|
||||
content: translate('notification.subscribed'),
|
||||
openUrl: '/'
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
let myres = {
|
||||
options: { ...options },
|
||||
options,
|
||||
subs: newSub,
|
||||
others: {
|
||||
userId: UserStore.state.userId,
|
||||
|
||||
@@ -201,7 +201,7 @@ namespace Actions {
|
||||
// console.log('******* UPDATE TODOS.STATE.TODOS !:', res.todos)
|
||||
if (body.todos) {
|
||||
state.todos = [...body.todos]
|
||||
Todos.mutations.setTodos_changed()
|
||||
// Todos.mutations.setTodos_changed()
|
||||
}
|
||||
|
||||
console.log('********** res', 'state.todos', state.todos, 'checkPending', checkPending)
|
||||
|
||||
Reference in New Issue
Block a user