mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix(desktop): todo tool title
This commit is contained in:
parent
8865e524cb
commit
ec46f71258
1 changed files with 3 additions and 1 deletions
|
|
@ -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}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue