Skip to content

Commit

Permalink
Final fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ayush1009208 committed Sep 24, 2024
1 parent f766e47 commit de4a6bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/leadspage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ const LeadForm: React.FC<LeadFormProps> = ({ closeForm, selectedLead, onLeadUpda
// Check if files exist and are not empty
setLead((prevLead) => ({
...prevLead,
imageUrl: URL.createObjectURL(files[0]), // Safely access the first file
imageUrl: URL.createObjectURL(files[0]),
}));
} else {
console.error("No file selected or invalid file input");
Expand Down

0 comments on commit de4a6bb

Please sign in to comment.