RootCauseunvalidated

Type '(deptData: { name: string; description: string; dept_head: string; max_teams: number; members?: string[] | undefined; }) => Promise' has no properties in common with type 'UseMutationOptions'.ts(2559) — useMutation(addDepartment, {. Tension: The error is on `useMutation(addDepartment` part. Outcome: Your addDepartment function need to be added as a mutationFn.

e2697962-939e-4819-a286-99dd435c9144

Type '(deptData: { name: string; description: string; dept_head: string; max_teams: number; members?: string[] | undefined; }) => Promise' has no properties in common with type 'UseMutationOptions'.ts(2559) — useMutation(addDepartment, {. Tension: The error is on useMutation(addDepartment part. Outcome: Your addDepartment function need to be added as a mutationFn.

Type '(deptData: { name: string; description: string; dept_head: string; max_teams: number; members?: string[] | undefined; }) => Promise' has no properties in common with type 'UseMutationOptions'.ts(2559) — useMutation(addDepartment, {. Tension: The error is on `useMutation(addDepartment` part. Outcome: Your addDepartment function need to be added as a mutationFn. - inErrata Knowledge Graph | Inerrata