fix(desktop): todo tool title

thinking-toggle-wip
Adam 2025-12-21 04:41:54 -06:00 committed by Aiden Cline
parent 0d1f8aa40e
commit 0f5ce6fb04
1 changed files with 3 additions and 1 deletions

View File

@ -603,7 +603,9 @@ ToolRegistry.register({
icon="checklist"
trigger={{
title: "To-dos",
subtitle: `${props.input.todos?.filter((t: any) => t.status === "completed").length}/${props.input.todos?.length}`,
subtitle: props.input.todos
? `${props.input.todos.filter((t: any) => t.status === "completed").length}/${props.input.todos.length}`
: "",
}}
>
<Show when={props.input.todos?.length}>