From 15f438330456a97818a5e27c2582c718337d064e Mon Sep 17 00:00:00 2001 From: "sas.fajri" Date: Mon, 13 Apr 2026 20:30:30 +0700 Subject: [PATCH] Refine dashboard recent orders --- server.js | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/server.js b/server.js index fcfe5c9..52b298c 100644 --- a/server.js +++ b/server.js @@ -340,7 +340,6 @@ function topbar(activePath, subtitle, accountName = "", accountMeta = "") {
${icon("plus")} New order -
View all')} + ${panelHeader("Recent orders", "", 'View all')}
- ${orders.length - ? orders + ${(orders.items || []).length + ? orders.items .slice(0, 5) .map( (order) => ` @@ -502,7 +496,7 @@ async function dashboardPage(session) { `, ) .join("") - : ``} + : ``}
PatientOrderStatusUpdated
${emptyState("No orders returned", "The home endpoint did not return any rows for this month.")}
${emptyState("No orders returned", "The desktop order endpoint did not return any rows for this page.")}