fix(desktop): todo tool title

This commit is contained in:
Adam 2025-12-21 04:41:54 -06:00
parent 8865e524cb
commit ec46f71258
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75

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}>