فهرست منبع

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

Aiden Cline 7 ماه پیش
والد
کامیت
b199a609a8
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      packages/web/src/components/Share.tsx

+ 1 - 1
packages/web/src/components/Share.tsx

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