FIX_THE_RELOAD_ISSUE

This commit is contained in:
VENKATESHWARAN 2026-05-11 14:41:07 +05:30
parent 1172472236
commit cb0cc20448

View File

@ -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);
});