diff --git a/web/src/components/Dashboard.jsx b/web/src/components/Dashboard.jsx index b6a7d4f..cea51de 100644 --- a/web/src/components/Dashboard.jsx +++ b/web/src/components/Dashboard.jsx @@ -109,6 +109,15 @@ export default function Dashboard({ api, refreshRef }) { .map(([cmd, count]) => ({ cmd, count })) })() + const recentUnique = (() => { + const seen = new Set() + return recentCmds.filter(c => { + if (seen.has(c.cmd)) return false + seen.add(c.cmd) + return true + }) + })() + return (
{/* CPU */}