From 12e3c52252997ad570e6f2b9ba454bb059e1cff1 Mon Sep 17 00:00:00 2001 From: Yuriy Date: Thu, 12 Feb 2026 13:25:58 +0300 Subject: [PATCH] fix(lint): remove impure addAuditEvent from Dashboard render --- desktop/ui/src/pages/Dashboard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/ui/src/pages/Dashboard.tsx b/desktop/ui/src/pages/Dashboard.tsx index 4afa629..e4ec3b3 100644 --- a/desktop/ui/src/pages/Dashboard.tsx +++ b/desktop/ui/src/pages/Dashboard.tsx @@ -96,7 +96,7 @@ export function Dashboard() { const handleCardClick = (path: string) => { try { eventBus.emit(Events.NAVIGATE, { path }); - addAuditEvent({ id: `nav-${Math.random().toString(36).slice(2)}`, event: 'navigation', timestamp: new Date().toISOString(), actor: 'user' }); + const navId = crypto.randomUUID(); addAuditEvent({ id: navId, event: 'navigation', timestamp: new Date().toISOString(), actor: 'user' }); } catch { /* ignored */ } navigate(path); };