mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-25 16:51:13 -05:00
Fix: Resolve logger not found errors
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user