diff --git a/app/Views/insurer_or_tpa_data.php b/app/Views/insurer_or_tpa_data.php index 0d2daae7..988f5d32 100755 --- a/app/Views/insurer_or_tpa_data.php +++ b/app/Views/insurer_or_tpa_data.php @@ -1428,10 +1428,18 @@ toastr.error(response.message || 'Unable to fetch data', 'Error'); } + setTimeout(function() { + window.location.reload(); + }, 500); + }, function(xhr, status, error) { console.error('Error fetching data:', error); console.error(xhr.responseText); toastr.error('An error occurred while pushing.', 'Error'); + + setTimeout(function() { + window.location.reload(); + }, 500); });