Skip to content

Commit

Permalink
save to profile true and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
aneuwald-ctw committed Dec 19, 2024
1 parent 9dc671c commit 0be4a6c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ export default function CurrentLayoutProvider({
return;
}

// For some reason, this needs to go befre the setSelectedLayoutId, probably some initialization
// For some reason, this needs to go before the setSelectedLayoutId, probably some initialization
const { currentLayoutId } = await getUserProfile();

// Try to load default layouts, before checking to add the fallback "Default".
Expand All @@ -291,7 +291,7 @@ export default function CurrentLayoutProvider({
// Check if there's a layout specified by app parameter
const defaultLayoutFromParameters = layouts.find((l) => l.name === appParameters.defaultLayout);
if (defaultLayoutFromParameters) {
await setSelectedLayoutId(defaultLayoutFromParameters.id, { saveToProfile: false });
await setSelectedLayoutId(defaultLayoutFromParameters.id, { saveToProfile: true });
return;
}

Expand Down

0 comments on commit 0be4a6c

Please sign in to comment.