From d21d377e172d66ecb5db40a425c9fc2669978c31 Mon Sep 17 00:00:00 2001 From: hanif salafi Date: Tue, 18 Nov 2025 00:52:51 +0700 Subject: [PATCH] fix: update media tracking table --- .../results/component/column.tsx | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/app/[locale]/(protected)/admin/media-tracking/results/component/column.tsx b/app/[locale]/(protected)/admin/media-tracking/results/component/column.tsx index ce17ebdd..44e9e74b 100644 --- a/app/[locale]/(protected)/admin/media-tracking/results/component/column.tsx +++ b/app/[locale]/(protected)/admin/media-tracking/results/component/column.tsx @@ -47,7 +47,7 @@ const columns: ColumnDef[] = [ { accessorKey: "link", header: "Jumlah Amplifikasi", - cell: ({ row }) => {row.getValue("link")}, + cell: ({ row }) => {row.getValue("resultTotal")}, }, // { // accessorKey: "status", @@ -55,20 +55,15 @@ const columns: ColumnDef[] = [ // cell: ({ row }) => {row.getValue("status")}, // }, { - accessorKey: "status", + accessorKey: "isProcessing", header: () =>
Status
, cell: ({ row }) => { - const raw = row.getValue("status"); - - let value: string | number = "-"; - - if (typeof raw === "string" || typeof raw === "number") { - value = raw; - } else if (raw && typeof raw === "object") { - value = JSON.stringify(raw); + const raw = row.getValue("isProcessing"); + var status = "Sedang Diproses" + if (Boolean(raw) == true) { + status = "Selesai Diproses"; } - - return
{value}
; + return
{status}
; }, }, {