From 5e43d69d8e8030d444ad6ee09708c50ee4ea3222 Mon Sep 17 00:00:00 2001 From: ljpark Date: Wed, 7 Oct 2026 15:05:40 +0900 Subject: [PATCH] =?UTF-8?q?sn:=20null=20=EC=9D=B8=EA=B2=BD=EC=9A=B0,=20?= =?UTF-8?q?=EA=B3=B5=EB=B0=B1=EC=9C=BC=EB=A1=9C=20=EB=B3=B4=EC=9D=B4?= =?UTF-8?q?=EB=8F=84=EB=A1=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/sn/app/components/ui/vertical-table.tsx | 21 ++++++-------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/apps/sn/app/components/ui/vertical-table.tsx b/apps/sn/app/components/ui/vertical-table.tsx index f2685d98c..1f3615a55 100644 --- a/apps/sn/app/components/ui/vertical-table.tsx +++ b/apps/sn/app/components/ui/vertical-table.tsx @@ -198,11 +198,8 @@ export function VerticalTable({ head.type === "select" ? ( handleInputChange(head.id, e.target.value) } @@ -357,11 +351,8 @@ export function VerticalTable({ ? "number" : "text" } - value={ - formData[head.id] !== undefined - ? String(formData[head.id]) - : "" - } + // DB 값이 null 이면 "null" 글자가 입력칸에 보이므로 빈칸으로 맞춘다. + value={String(formData[head.id] ?? "")} onChange={(e) => { if (head.isNumber) { const newValue = e.target.value;