mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-09 04:02:40 -05:00
Calendar: Fix can't edit regular map pool
This commit is contained in:
parent
84c50d62db
commit
571417cf5f
|
|
@ -261,7 +261,7 @@ export default function CalendarNewEventPage() {
|
|||
<DiscordLinkInput />
|
||||
<TagsAdder />
|
||||
<BadgesAdder />
|
||||
{!eventToEdit ? <TOToolsAndMapPool /> : null}
|
||||
<TOToolsAndMapPool />
|
||||
<SubmitButton className="mt-4">{t("actions.submit")}</SubmitButton>
|
||||
</Form>
|
||||
</Main>
|
||||
|
|
@ -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 && (
|
||||
<TOToolsEnabler checked={checked} setChecked={setChecked} />
|
||||
)}
|
||||
{checked ? (
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user