mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-02 14:30:29 +00:00
fix(desktop): "load more" button behavior in desktop sidebar (#8430)
This commit is contained in:
parent
05cbb11709
commit
077ca4454f
6 changed files with 62 additions and 4 deletions
|
|
@ -944,7 +944,7 @@ export default function Layout(props: ParentProps) {
|
|||
.toSorted(sortSessions),
|
||||
)
|
||||
const rootSessions = createMemo(() => sessions().filter((s) => !s.parentID))
|
||||
const hasMoreSessions = createMemo(() => store.session.length >= store.limit)
|
||||
const hasMoreSessions = createMemo(() => store.sessionTotal > store.session.length)
|
||||
const loadMoreSessions = async () => {
|
||||
setProjectStore("limit", (limit) => limit + 5)
|
||||
await globalSync.project.loadSessions(props.project.worktree)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue