added if condition on error status

This commit is contained in:
Eudes Inácio
2021-10-19 10:37:44 +01:00
parent 1eb1cd44a2
commit ed42a29c3f
@@ -107,7 +107,9 @@ export class PendentesPage implements OnInit {
this.skeletonLoader = false;
}, (error) => {
this.getFromDb();
if(error.status == 0){
this.getFromDb();
}
})
}
@@ -117,6 +119,7 @@ export class PendentesPage implements OnInit {
this.platform.ready().then(() => {
this.sqliteservice.getAllProcess().then((process: any[]) => {
var pendingList = []
console.log('Pendentes off off',process )
process.forEach(element => {
var workflow = JSON.parse(element.workflowInstanceDataFields);
if (workflow.Status === "Pending") {