summaryrefslogtreecommitdiff
path: root/lib/items-ship/table/update-items-sheet.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'lib/items-ship/table/update-items-sheet.tsx')
-rw-r--r--lib/items-ship/table/update-items-sheet.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/items-ship/table/update-items-sheet.tsx b/lib/items-ship/table/update-items-sheet.tsx
index 8bab9b14..e021e145 100644
--- a/lib/items-ship/table/update-items-sheet.tsx
+++ b/lib/items-ship/table/update-items-sheet.tsx
@@ -50,7 +50,7 @@ interface UpdateItemSheetProps {
itemId: number;
workType: "기장" | "전장" | "선실" | "배관" | "철의";
shipTypes: string;
- itemCode: string | null;
+ itemCode: string;
itemName: string;
description: string | null;
createdAt: Date;
@@ -62,11 +62,11 @@ interface UpdateItemSheetProps {
export function UpdateItemSheet({ item, open, onOpenChange }: UpdateItemSheetProps) {
const [isSubmitting, setIsSubmitting] = React.useState(false)
-
+ // 초기값 설정
const form = useForm<UpdateShipbuildingItemSchema>({
resolver: zodResolver(updateShipbuildingItemSchema),
defaultValues: {
- itemCode: item.itemCode || "",
+ itemCode: item.itemCode,
itemName: item.itemName,
description: item.description || "",
workType: item.workType,