From 9dc191d4372fd5952c7e53bbbcf7257dd12e8577 Mon Sep 17 00:00:00 2001 From: "hermes-seaeye[bot]" <307254004+hermes-seaeye[bot]@users.noreply.github.com> Date: Wed, 29 Jul 2026 00:09:37 +0000 Subject: [PATCH] fmt(js): `npm run fix` on merge (#73699) Co-authored-by: github-actions[bot] --- apps/desktop/src/store/session.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/desktop/src/store/session.ts b/apps/desktop/src/store/session.ts index d26840702dcf..567b804e46b0 100644 --- a/apps/desktop/src/store/session.ts +++ b/apps/desktop/src/store/session.ts @@ -245,9 +245,7 @@ export function mergeSessionPage( const last_active = Math.max(prev?.last_active ?? 0, session.last_active ?? 0) const title = session.title?.trim() ? session.title : prev?.title?.trim() ? prev.title : session.title - return last_active === session.last_active && title === session.title - ? session - : { ...session, last_active, title } + return last_active === session.last_active && title === session.title ? session : { ...session, last_active, title } }) if (keep.size === 0) { @@ -288,6 +286,7 @@ export function touchSessionActivity( setSessions(prev => { let changed = false + const next = prev.map(session => { if (!sessionMatchesStoredId(session, id)) { return session