diff options
Diffstat (limited to 'lib/swp/table/swp-table.tsx')
| -rw-r--r-- | lib/swp/table/swp-table.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/swp/table/swp-table.tsx b/lib/swp/table/swp-table.tsx index 6f810415..348f388b 100644 --- a/lib/swp/table/swp-table.tsx +++ b/lib/swp/table/swp-table.tsx @@ -47,7 +47,7 @@ export function SwpTable({ const statusMap = new Map<string, number>(); documents.forEach((doc) => { - const status = doc.LTST_ACTV_STAT || "UNKNOWN"; + const status = doc.LTST_ACTV_STAT || "Waiting"; statusMap.set(status, (statusMap.get(status) || 0) + 1); }); @@ -68,7 +68,7 @@ export function SwpTable({ if (!selectedStatus) { return documents; } - return documents.filter((doc) => doc.LTST_ACTV_STAT === selectedStatus); + return documents.filter((doc) => (doc.LTST_ACTV_STAT || "Waiting") === selectedStatus); }, [documents, selectedStatus]); const table = useReactTable({ @@ -95,7 +95,7 @@ export function SwpTable({ onClick={() => setSelectedStatus(null)} className="h-9" > - 전체 ({documents.length}) + All ({documents.length}) </Button> {statusCounts.map((statusCount) => ( <Button @@ -162,7 +162,7 @@ export function SwpTable({ ) : ( <TableRow> <TableCell colSpan={swpDocumentColumns.length} className="h-24 text-center"> - 데이터 없음 + No data </TableCell> </TableRow> )} |
