From 991e79310ad62a7e3e0d16f6f0521b62bf602cda Mon Sep 17 00:00:00 2001 From: ajnart Date: Sat, 8 Aug 2026 16:02:40 +0200 Subject: [PATCH] fix: avoid nested board settings forms --- .../boards/[name]/settings/_settings-form.tsx | 64 ++++++++++--------- 1 file changed, 33 insertions(+), 31 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 f8e212b87..dfb4a8147 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 @@ -176,40 +176,42 @@ export const BoardSettingsForm = ({ board, permissions, hasFullAccess, hideVisib const isPending = savePartialSettings.isPending || saveLayouts.isPending; return ( -
void saveSettingsAsync(values))}> - - - saveSettingsAsync(form.values)} - /> - - - - + + void saveSettingsAsync(values))}> + + + saveSettingsAsync(form.values)} + /> + + + + - {hasFullAccess && ( - - - - )} + {form.isDirty() && ( + + + + + )} + + - {hasFullAccess && } + {hasFullAccess && ( + + + + )} - {form.isDirty() && ( - - - - - )} - - + {hasFullAccess && } +
); };