- fix: update on Insert

- fix: update on Edit
This commit is contained in:
Paolo Arena
2019-02-03 02:40:24 +01:00
parent 5db5fb7dd0
commit 5d987013c5
6 changed files with 103 additions and 32 deletions

View File

@@ -32,7 +32,8 @@ async function readfromIndexDbToStateTodos(context) {
return await storage.getalldata('todos')
.then(ristodos => {
console.log('&&&&&&& readfromIndexDbToStateTodos OK: Num RECORD: ', ristodos.length)
UserStore.state.todos = ristodos
console.log('ristodos:', ristodos)
UserStore.state.todos = [...ristodos]
}).catch((error) => {
console.log('err: ', error)
})