diff --git a/src/app/pages/gabinete-digital/pedidos/pedido/pedido.page.ts b/src/app/pages/gabinete-digital/pedidos/pedido/pedido.page.ts index ddada3838..f585a81e5 100644 --- a/src/app/pages/gabinete-digital/pedidos/pedido/pedido.page.ts +++ b/src/app/pages/gabinete-digital/pedidos/pedido/pedido.page.ts @@ -154,8 +154,14 @@ export class PedidoPage implements OnInit { }); this.getDocumentDetails(res.workflowInstanceDataFields.FolderID, '361'); }, ()=>{ - this.toastService.badRequest('Processo não encontrado') - this.goBack() + try { + this.toastService.badRequest('Processo não encontrado') + this.goBack() + this.close() + } catch (e) { + window.history.back(); + } + }); }