diff --git a/apps/nextjs/src/app/(dashboard)/project/[id]/(tasks)/tasks/_actions.ts b/apps/nextjs/src/app/(dashboard)/project/[id]/(tasks)/tasks/_actions.ts index e947170..69b08bc 100644 --- a/apps/nextjs/src/app/(dashboard)/project/[id]/(tasks)/tasks/_actions.ts +++ b/apps/nextjs/src/app/(dashboard)/project/[id]/(tasks)/tasks/_actions.ts @@ -13,7 +13,7 @@ const schema = z.object({ z.object({ id: z.string(), type: z.string().optional(), - parentId: z.string().optional().default("noid"), + parentId: z.string().optional(), position: z.object({ x: z.number(), y: z.number(), @@ -65,7 +65,7 @@ export async function saveTasks(data: InputProps) { id: task.id, type: task.type, // Provide a default value if type is undefined title: task.data.title, - parentId: task.parentId, // Use null if parentId is undefined + parentId: task.parentId ?? "noid", // Use null if parentId is undefined status: task.data.status as TaskStatus, description: task.data.description, position: task.position, diff --git a/apps/website/src/app/(marketing)/_components/faq.tsx b/apps/website/src/app/(marketing)/_components/faq.tsx index 1f174e1..50fcd4e 100644 --- a/apps/website/src/app/(marketing)/_components/faq.tsx +++ b/apps/website/src/app/(marketing)/_components/faq.tsx @@ -1,4 +1,5 @@ import React from "react"; + import { Accordion, AccordionContent, diff --git a/apps/website/src/components/ui/button-loading.tsx b/apps/website/src/components/ui/button-loading.tsx index 70b7520..dc3af56 100644 --- a/apps/website/src/components/ui/button-loading.tsx +++ b/apps/website/src/components/ui/button-loading.tsx @@ -38,7 +38,7 @@ const buttonVariants = cva( export interface ButtonProps extends React.ButtonHTMLAttributes, - VariantProps { + VariantProps { asChild?: boolean; disabled?: boolean; icon?: React.ReactNode; @@ -70,9 +70,7 @@ const Button = React.forwardRef( > <> {loading && ( - + )} {!loading && icon} {children}