mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix: type errors
This commit is contained in:
parent
8474cf6279
commit
4609d12efe
5 changed files with 12 additions and 6 deletions
|
|
@ -60,7 +60,7 @@ export const { use: useSession, provider: SessionProvider } = createSimpleContex
|
|||
})
|
||||
const status = createMemo(
|
||||
() =>
|
||||
sync.data.session_status[params.id] ?? {
|
||||
sync.data.session_status[params.id ?? ""] ?? {
|
||||
type: "idle",
|
||||
},
|
||||
)
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ export default function Layout(props: ParentProps) {
|
|||
const params = useParams()
|
||||
const sync = useGlobalSync()
|
||||
const directory = createMemo(() => {
|
||||
const decoded = base64Decode(params.dir)
|
||||
const decoded = base64Decode(params.dir!)
|
||||
return sync.data.projects.find((x) => x.worktree === decoded)?.worktree ?? "/"
|
||||
})
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -334,7 +334,7 @@ export default function Page() {
|
|||
<Switch>
|
||||
<Match when={session.id}>
|
||||
<SessionTimeline
|
||||
sessionID={session.id}
|
||||
sessionID={session.id!}
|
||||
expanded={layout.review.state() === "tab" || !session.diffs().length}
|
||||
/>
|
||||
</Match>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue