removed alert

This commit is contained in:
David Katrinka 2026-01-07 19:05:10 +01:00
parent 198eee07c6
commit 30fa70ef78

View File

@ -21,6 +21,7 @@ import type {
UpdatePublicationPayload,
} from "../../api/publications";
import { useCategories } from "../../hooks/categories/useCategories";
import { toast } from "react-toastify";
const PublicationForm = () => {
const { id } = useParams<{ id: string }>();
@ -79,7 +80,7 @@ const PublicationForm = () => {
);
} else {
if (!file) {
alert("File is required");
toast.error("File is required");
return;
}