tui: newly pinned sessions now append to the end of the list instead of jumping to the top
This commit is contained in:
parent
e36d6a0cbe
commit
042e6a5c86
1 changed files with 1 additions and 1 deletions
|
|
@ -457,7 +457,7 @@ export const { use: useLocal, provider: LocalProvider } = createSimpleContext({
|
||||||
const exists = sessionStore.pinned.includes(sessionID)
|
const exists = sessionStore.pinned.includes(sessionID)
|
||||||
const next = exists
|
const next = exists
|
||||||
? sessionStore.pinned.filter((x) => x !== sessionID)
|
? sessionStore.pinned.filter((x) => x !== sessionID)
|
||||||
: [sessionID, ...sessionStore.pinned]
|
: [...sessionStore.pinned, sessionID]
|
||||||
setSessionStore("pinned", next)
|
setSessionStore("pinned", next)
|
||||||
save()
|
save()
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue