From 85aea080071a196535d27f899f648af9a63de1cc Mon Sep 17 00:00:00 2001 From: trafficlunar Date: Fri, 27 Mar 2026 22:25:33 +0000 Subject: [PATCH] fix: another temp fix for edit page crashing? --- src/components/submit-form/index.tsx | 2 +- src/components/submit-form/mii-editor/tabs/other.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/submit-form/index.tsx b/src/components/submit-form/index.tsx index d3222b2..7937486 100644 --- a/src/components/submit-form/index.tsx +++ b/src/components/submit-form/index.tsx @@ -337,7 +337,7 @@ export default function SubmitForm() {
- +
diff --git a/src/components/submit-form/mii-editor/tabs/other.tsx b/src/components/submit-form/mii-editor/tabs/other.tsx index b1787cf..1b72e4f 100644 --- a/src/components/submit-form/mii-editor/tabs/other.tsx +++ b/src/components/submit-form/mii-editor/tabs/other.tsx @@ -24,8 +24,8 @@ export default function OtherTab({ instructions }: Props) { const [colors, setColors] = useState(() => TABS.map((t) => { - const entry = instructions.current.other[t.name]; - const color = "color" in entry ? entry.color : null; + const entry = instructions.current.other[t.name] ?? {}; + const color = entry && "color" in entry ? entry.color : null; return color ?? t.defaultColor ?? 0; }), );