From 4ce6ad3fcbefc2a301211f19bd0978f0729ec8f0 Mon Sep 17 00:00:00 2001 From: Rama Priyanto Date: Fri, 13 Jun 2025 17:04:25 +0700 Subject: [PATCH] fix:dashboard stats --- components/main/dashboard/dashboard-container.tsx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/components/main/dashboard/dashboard-container.tsx b/components/main/dashboard/dashboard-container.tsx index ac0a2d6..f51ffbe 100644 --- a/components/main/dashboard/dashboard-container.tsx +++ b/components/main/dashboard/dashboard-container.tsx @@ -197,11 +197,16 @@ export default function DashboardContainer() { const getTableNumberStats = (data: any) => { if (data) { let iterate = 0; - const newData = data.map((value: any) => { - iterate++; - value.no = iterate; - return value; - }); + const newData = data + .filter( + (value: any) => + value.userLevelName !== "SATWIL" && value.userLevelName !== "SATKER" + ) + .map((value: any) => { + iterate++; + value.no = iterate; + return value; + }); return newData; } };