refactor: verticalTable.tsx 의 value값 String 타입으로 변환

This commit is contained in:
swcho
2025-06-25 18:25:28 +09:00
parent e0dabac1e6
commit a2ac2433f7
+4 -4
View File
@@ -115,7 +115,7 @@ export function VerticalTable({
head.type === "select" ? (
<select
id={head.id}
value={formData[head.id] ?? "-"}
value={String(formData[head.id]) ?? "-"}
onChange={(e) => handleInputChange(head.id, e.target.value)}
className="w-full border border-gray-300 rounded-sm px-2 py-1 text-xl border-radius-0"
>
@@ -129,7 +129,7 @@ export function VerticalTable({
<input
id={head.id}
type="text"
value={formData[head.id] ?? ""}
value={String(formData[head.id]) ?? ""}
onChange={(e) => handleInputChange(head.id, e.target.value)}
className="w-full text-xl border-radius-0 border border-gray-300 rounded-sm px-2 py-1"
/>
@@ -162,7 +162,7 @@ export function VerticalTable({
head.type === "select" ? (
<select
id={head.id}
value={formData[head.id] ?? "-"}
value={String(formData[head.id]) ?? "-"}
onChange={(e) => handleInputChange(head.id, e.target.value)}
className="w-full border border-gray-300 rounded-sm px-2 py-1 text-xl border-radius-0"
>
@@ -176,7 +176,7 @@ export function VerticalTable({
<input
id={head.id}
type="text"
value={formData[head.id] ?? ""}
value={String(formData[head.id]) ?? ""}
onChange={(e) => handleInputChange(head.id, e.target.value)}
className="w-full text-xl border-radius-0 border border-gray-300 rounded-sm px-2 py-1"
/>