FIXIT modify error during moving items ...

The problem was the forEach and inside ad await... it doesn't WORK !
RESOLVE:
 using normal FOR:
  for (const myelem of myarray) {
     await myfuncasync(...)
  }
This commit is contained in:
Paolo Arena
2019-02-20 19:17:29 +01:00
parent 77568f02f5
commit c77fe5b2f9
4 changed files with 48 additions and 32 deletions

View File

@@ -253,9 +253,9 @@ namespace Actions {
console.log('clearDataAfterLogout')
// Clear all data from the IndexedDB
await allTables.forEach(table => {
globalroutines(null, 'clearalldata', table, null)
})
for (const table of allTables){
await globalroutines(null, 'clearalldata', table, null)
}
if ('serviceWorker' in navigator) {
// REMOVE ALL SUBSCRIPTION