mirror of
https://github.com/sst/opencode.git
synced 2025-07-07 16:14:59 +00:00
fix: handle null case if tool args are empty for todos (#588)
This commit is contained in:
parent
4a5a93b3f8
commit
b199a609a8
1 changed files with 1 additions and 1 deletions
|
@ -1616,7 +1616,7 @@ export default function Share(props: {
|
|||
>
|
||||
{(_part) => {
|
||||
const todos = createMemo(() =>
|
||||
sortTodosByStatus(toolData()?.args.todos),
|
||||
sortTodosByStatus(toolData()?.args?.todos ?? []),
|
||||
)
|
||||
const starting = () =>
|
||||
todos().every((t) => t.status === "pending")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue