Skip to content

Commit 1545a90

Browse files
authored
fix: guard addFolderMutate call when no folder is selected in onboarding (#1287)
1 parent 8edd418 commit 1545a90

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

frontend/src/components/OnboardingSteps/FolderSetupStep.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ export function FolderSetupStep({
5858

5959
const handleNext = () => {
6060
localStorage.setItem('folderChosen', 'true');
61-
addFolderMutate(folder);
61+
if (folder) {
62+
addFolderMutate(folder);
63+
}
6264
dispatch(markCompleted(stepIndex));
6365
};
6466

0 commit comments

Comments
 (0)