fix: handle null case if tool args are empty for todos (#588)

This commit is contained in:
Aiden Cline
2025-07-01 18:25:23 -05:00
committed by GitHub
parent 4a5a93b3f8
commit b199a609a8

View File

@@ -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")