chore: fix types

This commit is contained in:
Henry
2024-04-23 09:13:04 +01:00
parent 4e344a5ae1
commit 0c1de23a19
11 changed files with 80 additions and 45 deletions

View File

@@ -1,4 +1,4 @@
import { useEffect, useState } from "react";
import { useEffect } from "react";
import { useForm } from "react-hook-form";
import { api } from "~/utils/api";
@@ -88,7 +88,7 @@ export function NewCardForm({ listPublicId }: NewCardFormProps) {
const formattedMembers =
boardData?.workspace?.members?.map((member) => ({
key: member.publicId,
value: member.user.name,
value: member.user?.name ?? "",
selected: memberPublicIds.includes(member.publicId),
})) ?? [];