mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-21 12:51:14 -05:00
Continue console cleanup
This commit is contained in:
@@ -13,6 +13,8 @@ import { DragDropZone } from './DragDropZone';
|
||||
import { supabase } from '@/integrations/supabase/client';
|
||||
import { toast } from '@/hooks/use-toast';
|
||||
import { Skeleton } from '@/components/ui/skeleton';
|
||||
import { getErrorMessage } from '@/lib/errorHandler';
|
||||
import { logger } from '@/lib/logger';
|
||||
|
||||
export interface UploadedImage {
|
||||
url: string;
|
||||
@@ -68,7 +70,7 @@ export function EntityMultiImageUploader({
|
||||
try {
|
||||
URL.revokeObjectURL(image.url);
|
||||
} catch (error: unknown) {
|
||||
console.error('Error revoking object URL:', error);
|
||||
logger.error('Failed to revoke object URL', { error: getErrorMessage(error) });
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -106,10 +108,9 @@ export function EntityMultiImageUploader({
|
||||
card_assignment: cardIndex >= 0 ? cardIndex : null,
|
||||
});
|
||||
} catch (error: unknown) {
|
||||
console.error('Failed to load entity photos:', error);
|
||||
toast({
|
||||
title: 'Error',
|
||||
description: 'Failed to load existing photos',
|
||||
description: getErrorMessage(error),
|
||||
variant: 'destructive',
|
||||
});
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user