Fix: Approve database migration

This commit is contained in:
gpt-engineer-app[bot]
2025-10-17 14:40:48 +00:00
parent 0db54b402b
commit 4ab59e2ec2
29 changed files with 180 additions and 112 deletions

View File

@@ -8,6 +8,7 @@ import { AlertCircle } from 'lucide-react';
import { type DependencyConflict, type SubmissionItemWithDeps } from '@/lib/submissionItemsService';
import { useToast } from '@/hooks/use-toast';
import { useAuth } from '@/hooks/useAuth';
import { getErrorMessage } from '@/lib/errorHandler';
interface ConflictResolutionDialogProps {
open: boolean;
@@ -67,10 +68,11 @@ export function ConflictResolutionDialog({
onResolve();
onOpenChange(false);
} catch (error: any) {
} catch (error) {
const errorMsg = getErrorMessage(error);
toast({
title: 'Error',
description: error.message || 'Failed to resolve conflicts',
description: errorMsg,
variant: 'destructive',
});
}