Calculate script optimizations, reset metrics script fixes, calculate script fixes
This commit is contained in:
@@ -487,7 +487,7 @@ export function DataManagement() {
|
||||
}
|
||||
};
|
||||
|
||||
// Check status on mount and periodically
|
||||
// Check status on mount
|
||||
useEffect(() => {
|
||||
const checkStatus = async () => {
|
||||
console.log('Checking status...');
|
||||
@@ -590,14 +590,8 @@ export function DataManagement() {
|
||||
}
|
||||
};
|
||||
|
||||
console.log('Setting up status check interval');
|
||||
console.log('Checking status on page load');
|
||||
checkStatus();
|
||||
const interval = setInterval(checkStatus, 5000);
|
||||
|
||||
return () => {
|
||||
console.log('Cleaning up status check interval');
|
||||
clearInterval(interval);
|
||||
};
|
||||
}, []);
|
||||
|
||||
const handleUpdateCSV = async () => {
|
||||
|
||||
Reference in New Issue
Block a user