mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-30 13:39:52 +00:00
fix(app): regressions
This commit is contained in:
parent
3929f0b5bd
commit
70c794e913
13 changed files with 101 additions and 73 deletions
|
|
@ -26,7 +26,7 @@ export const isRootVisibleSession = (session: Session, directory: string) =>
|
|||
workspaceKey(session.directory) === workspaceKey(directory) && !session.parentID && !session.time?.archived
|
||||
|
||||
export const sortedRootSessions = (store: { session: Session[]; path: { directory: string } }, now: number) =>
|
||||
store.session.filter((session) => isRootVisibleSession(session, store.path.directory)).toSorted(sortSessions(now))
|
||||
store.session.filter((session) => isRootVisibleSession(session, store.path.directory)).sort(sortSessions(now))
|
||||
|
||||
export const childMapByParent = (sessions: Session[]) => {
|
||||
const map = new Map<string, string[]>()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue