Remove debug console logs

This commit is contained in:
gpt-engineer-app[bot]
2025-10-21 15:51:53 +00:00
parent 5e789c7b4b
commit d78356e673
26 changed files with 37 additions and 156 deletions

View File

@@ -50,8 +50,6 @@ export function EntityPhotoGallery({
const fetchPhotos = async () => {
try {
console.log('📷 [FETCH PHOTOS] Starting fetch for:', { entityId, entityType });
// Fetch photos directly from the photos table
const { data: photoData, error } = await supabase
.from('photos')
@@ -60,8 +58,6 @@ export function EntityPhotoGallery({
.eq('entity_id', entityId)
.order('created_at', { ascending: sortBy === 'oldest' });
console.log('📷 [FETCH PHOTOS] Query result:', { photoData, error, count: photoData?.length });
if (error) throw error;
// Map to Photo interface
@@ -74,7 +70,6 @@ export function EntityPhotoGallery({
created_at: photo.created_at,
})) || [];
console.log('📷 [FETCH PHOTOS] Mapped photos:', mappedPhotos);
setPhotos(mappedPhotos);
} catch (error: unknown) {
console.error('📷 [FETCH PHOTOS] Error:', error);