From cfef3ae7f01a1adefb44a222ea1bd99eecb448f4 Mon Sep 17 00:00:00 2001 From: Peter Maquiran Date: Sat, 17 Jul 2021 15:02:02 +0100 Subject: [PATCH] Fix --- .../gabinete-digital/pedidos/pedido/pedido.page.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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(); + } + }); }