fix: preserve board drafts and widget scroll state (#6637)

This commit is contained in:
Thomas authored and GitHub committed 2026-08-22 09:13:32 +02:00
1 parent b2fa46c760
commit 011ce8e5a3
2 files changed
+19 -8

No files matched your search

@@ -93,8 +93,7 @@ export const LayoutSettingsContent = ({ board, form, isSaving, saveSettingsAsync
setResettingLayoutId(layout.id);
void (async () => {
try {
const savedValues = form.isDirty() ? await saveSettingsAsync() : form.values;
const canonicalLayout = savedValues ? findCanonicalLayout(savedValues.layouts, layout) : undefined;
const canonicalLayout = board.layouts.find((candidate) => candidate.id === layout.id);
if (!canonicalLayout) return;
await resetLayout({ boardId: board.id, layoutId: canonicalLayout.id });