mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-22 10:14:22 +01:00
fix: handle null case if tool args are empty for todos (#588)
This commit is contained in:
@@ -1616,7 +1616,7 @@ export default function Share(props: {
|
|||||||
>
|
>
|
||||||
{(_part) => {
|
{(_part) => {
|
||||||
const todos = createMemo(() =>
|
const todos = createMemo(() =>
|
||||||
sortTodosByStatus(toolData()?.args.todos),
|
sortTodosByStatus(toolData()?.args?.todos ?? []),
|
||||||
)
|
)
|
||||||
const starting = () =>
|
const starting = () =>
|
||||||
todos().every((t) => t.status === "pending")
|
todos().every((t) => t.status === "pending")
|
||||||
|
|||||||
Reference in New Issue
Block a user