From 667ecbf439b2426e3c744a47ce8b3f7e8814231f Mon Sep 17 00:00:00 2001 From: makearmy Date: Sun, 28 Sep 2025 18:54:16 -0400 Subject: [PATCH] submit 'type' fixes --- app/components/forms/SettingsSubmit.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/components/forms/SettingsSubmit.tsx b/app/components/forms/SettingsSubmit.tsx index 6ce0fe7b..88cabf62 100644 --- a/app/components/forms/SettingsSubmit.tsx +++ b/app/components/forms/SettingsSubmit.tsx @@ -129,7 +129,12 @@ function useOptions(path: string) { child = rows.find((r: any) => r?.field === full); } - const choices: any[] = child?.meta?.options?.choices || []; + // ⟵ PATCH: read choices from nested child.options.choices first, then meta.options.choices + const choices: any[] = + (child?.options?.choices as any[]) || + (child?.meta?.options?.choices as any[]) || + []; + const mapped: Opt[] = choices.map((c: any) => ({ id: String(c.value ?? c.key ?? c.id), label: String(c.text ?? c.label ?? c.name ?? c.value),