From 571417cf5feee81dc2ca24cbd9b34d30fb4e1d5d Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sat, 27 May 2023 10:19:43 +0300 Subject: [PATCH] Calendar: Fix can't edit regular map pool --- app/routes/calendar/new.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/routes/calendar/new.tsx b/app/routes/calendar/new.tsx index fbec99943..99d226958 100644 --- a/app/routes/calendar/new.tsx +++ b/app/routes/calendar/new.tsx @@ -261,7 +261,7 @@ export default function CalendarNewEventPage() { - {!eventToEdit ? : null} + {t("actions.submit")} @@ -626,9 +626,12 @@ function TOToolsAndMapPool() { : "ALL" ); + // currently not possible to edit "tournament" data after submitting it + if (eventToEdit?.tournamentId) return null; + return ( <> - {canEnableTOTools(user) && ( + {canEnableTOTools(user) && !eventToEdit && ( )} {checked ? (