diff --git a/src/app/(main)/boards/[boardId]/BoardComponentSelect.tsx b/src/app/(main)/boards/[boardId]/BoardComponentSelect.tsx index 7222be6b1..c88714f04 100644 --- a/src/app/(main)/boards/[boardId]/BoardComponentSelect.tsx +++ b/src/app/(main)/boards/[boardId]/BoardComponentSelect.tsx @@ -98,7 +98,7 @@ export function BoardComponentSelect({ }; const handleAdd = () => { - if (!selectedDef) return; + if (!selectedDef || !selectedWebsiteId) return; const props: Record = {}; @@ -137,6 +137,8 @@ export function BoardComponentSelect({ } : null; + const canSave = !!selectedDef && !!selectedWebsiteId; + return ( @@ -271,7 +273,7 @@ export function BoardComponentSelect({ -