@@ -47,6 +49,7 @@ export default function EditEventImage({event}: { event: EventModel }) {
!image &&
setImage(files[0])}
fileCount={image ? 1 : 0}
maxFileCount={1}
diff --git a/src/pages/events/s/EventListSlotView.tsx b/src/pages/events/s/EventListSlotView.tsx
index 201e777..85493ab 100644
--- a/src/pages/events/s/EventListSlotView.tsx
+++ b/src/pages/events/s/EventListSlotView.tsx
@@ -11,6 +11,7 @@ import {FieldEntries} from "@/components/formUtil/FromInput/types.ts";
import {showSuccessNotification} from "@/components/util.tsx";
import InnerHtml from "@/components/InnerHtml";
import FormInput from "@/components/formUtil/FromInput";
+import {useNavigate} from "react-router-dom";
export default function EventListSlotView({slot, list, refetch}: {
list: EventListModel,
@@ -33,6 +34,8 @@ export default function EventListSlotView({slot, list, refetch}: {
const {pb, user} = usePB()
+ const navigate = useNavigate()
+
const createEntryMutation = useMutation({
mutationFn: async (data: FieldEntries) => {
await pb.collection("eventListSlotEntries").create({
@@ -45,6 +48,7 @@ export default function EventListSlotView({slot, list, refetch}: {
showSuccessNotification("Eintrag erfolgreich erstellt")
expandedHandler.close()
refetch()
+ navigate(`/events/entries`)
}
})