From ffa3c21972e00975f68a2ea5ace890917395ec36 Mon Sep 17 00:00:00 2001 From: Tb Fajri Date: Wed, 24 Jan 2024 13:47:28 +0700 Subject: [PATCH] update navigate edit final log --- .../FinalLog/Components/DialogEditFinalLOG.tsx | 7 ++----- .../Request/Components/DialogEditInformation.tsx | 3 ++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/frontend/dashboard/src/pages/CustomerService/FinalLog/Components/DialogEditFinalLOG.tsx b/frontend/dashboard/src/pages/CustomerService/FinalLog/Components/DialogEditFinalLOG.tsx index f7a61920..3a27695f 100644 --- a/frontend/dashboard/src/pages/CustomerService/FinalLog/Components/DialogEditFinalLOG.tsx +++ b/frontend/dashboard/src/pages/CustomerService/FinalLog/Components/DialogEditFinalLOG.tsx @@ -85,11 +85,8 @@ export default function DialogEditFinalLOG({requestLog, setOpenDialog, openDialo .then((response) => { enqueueSnackbar('Verification Request LOG Success', { variant: 'success' }); setOpenDialog(false); - if (requestLog?.service_type == 'Inpatient'){ - navigate('/case_management/inpatient_monitoring'); - } else { - navigate('/custormer-service/final-log'); - } + navigate('/case_management/final-log/detail/' + requestLog?.id) + window.location.reload() }) .catch(({ response }) => { enqueueSnackbar(response.data.message ?? 'Something went wrong!', { variant: 'error' }); diff --git a/frontend/dashboard/src/pages/CustomerService/Request/Components/DialogEditInformation.tsx b/frontend/dashboard/src/pages/CustomerService/Request/Components/DialogEditInformation.tsx index 0d1ffb7b..5ca778a8 100644 --- a/frontend/dashboard/src/pages/CustomerService/Request/Components/DialogEditInformation.tsx +++ b/frontend/dashboard/src/pages/CustomerService/Request/Components/DialogEditInformation.tsx @@ -71,7 +71,8 @@ export default function DialogEditInformation({requestLog, setOpenDialog, openDi .then((response) => { enqueueSnackbar('Verification Request LOG Success', { variant: 'success' }); setOpenDialog(false); - navigate('/custormer-service/request') + navigate('/custormer-service/request/detail/' + requestLog?.id) + window.location.reload() }) .catch(({ response }) => { enqueueSnackbar(response.data.message ?? 'Something went wrong!', { variant: 'error' });