fmt(js): npm run fix on merge (#73699)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
hermes-seaeye[bot] 2026-07-29 00:09:37 +00:00 committed by GitHub
parent 3d0e543aa7
commit 9dc191d437
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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