Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

fix: issue with foreign key constraint do to empty string for home board (#2088)

Meier Lukasac788650fb60
diff --git a/apps/nextjs/src/app/[locale]/manage/users/[userId]/general/_components/_change-home-board.tsx b/apps/nextjs/src/app/[locale]/manage/users/[userId]/general/_components/_change-home-board.tsx
index 1666e15b2..7a5b58817 100644
--- a/apps/nextjs/src/app/[locale]/manage/users/[userId]/general/_components/_change-home-board.tsx
+++ b/apps/nextjs/src/app/[locale]/manage/users/[userId]/general/_components/_change-home-board.tsx
@@ -39,8 +39,8 @@ export const ChangeHomeBoardForm = ({ user, boardsData }: ChangeHomeBoardFormPro
});
const form = useZodForm(validation.user.changeHomeBoards, {
initialValues: {
- homeBoardId: user.homeBoardId ?? "",
- mobileHomeBoardId: user.mobileHomeBoardId ?? "",
+ homeBoardId: user.homeBoardId,
+ mobileHomeBoardId: user.mobileHomeBoardId,
},
});