mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-29 18:46:59 +00:00
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:
parent
3d0e543aa7
commit
9dc191d437
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue