Skip to content

Commit

Permalink
fix: Remove title error after setting image
Browse files Browse the repository at this point in the history
  • Loading branch information
d-exclaimation committed May 15, 2023
1 parent 7476642 commit f5e1a56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/gallery/CreateFilmDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ const CreateFilmDialog: FC<CreateFilmDialogProps> = ({ creating, onClose }) => {
if (!allowedTypes.includes(file.type)) {
return;
}
console.log(URL.createObjectURL(file));
setTitleError((prev) =>
prev?.includes("Image") ? prev : null
);
setPreview(URL.createObjectURL(file));
setFile(file);
}}
Expand Down

1 comment on commit f5e1a56

@vercel
Copy link

@vercel vercel bot commented on f5e1a56 May 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.