From bbc23a6c65036f060a29580ac0ec9eef4e3f2f3c Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Sun, 9 Aug 2026 02:21:01 +0200 Subject: [PATCH] fix(settings): avoid nested forms --- .../boards/[name]/settings/_settings-form.tsx | 54 ++++++++++--------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/apps/nextjs/src/app/[locale]/boards/[name]/settings/_settings-form.tsx b/apps/nextjs/src/app/[locale]/boards/[name]/settings/_settings-form.tsx index b8e66cf4b..c27f77c71 100644 --- a/apps/nextjs/src/app/[locale]/boards/[name]/settings/_settings-form.tsx +++ b/apps/nextjs/src/app/[locale]/boards/[name]/settings/_settings-form.tsx @@ -178,35 +178,37 @@ export const BoardSettingsForm = ({ board, permissions, hasFullAccess, hideVisib const isPending = savePartialSettings.isPending || saveLayouts.isPending; return ( -
void handleSubmitAsync(values))}> - - - - - - - + + void handleSubmitAsync(values))}> + + + + + + + - {hasFullAccess && ( - - - - )} + {form.isDirty() && ( + + + + + )} + + - {hasFullAccess && } + {hasFullAccess && ( + + + + )} - {form.isDirty() && ( - - - - - )} - - + {hasFullAccess && } +
); };