Fix: Resolve logger not found errors

This commit is contained in:
gpt-engineer-app[bot]
2025-11-04 21:08:37 +00:00
parent a649906b61
commit 22522b31ac
8 changed files with 17 additions and 17 deletions

View File

@@ -90,7 +90,7 @@ export default function OperatorDetail() {
fetchPhotoCount(data.id);
}
} catch (error) {
logger.error('Error fetching operator', { error });
handleNonCriticalError(error, { action: 'Fetch Operator', metadata: { slug } });
} finally {
setLoading(false);
}
@@ -111,7 +111,7 @@ export default function OperatorDetail() {
if (error) throw error;
setParks(data || []);
} catch (error) {
logger.error('Error fetching parks', { error });
handleNonCriticalError(error, { action: 'Fetch Operator Parks', metadata: { operatorId } });
} finally {
setParksLoading(false);
}
@@ -138,7 +138,7 @@ export default function OperatorDetail() {
if (ridesError) throw ridesError;
setOperatingRides(ridesData?.length || 0);
} catch (error) {
logger.error('Error fetching statistics', { error });
handleNonCriticalError(error, { action: 'Fetch Operator Statistics', metadata: { operatorId } });
} finally {
setStatsLoading(false);
}
@@ -155,7 +155,7 @@ export default function OperatorDetail() {
if (error) throw error;
setTotalPhotos(count || 0);
} catch (error) {
logger.error('Error fetching photo count', { error });
handleNonCriticalError(error, { action: 'Fetch Operator Photo Count', metadata: { operatorId } });
setTotalPhotos(0);
}
};