Skip to content

Commit 5236e37

Browse files
author
Zoo (VP)
committed
fix(b09): fix TS2353 in taskOrganizationModel.coverage.spec.ts
- makeGroup() used 'children' which doesn't exist on TaskGroup - Changed to use 'subtasks' (SubtaskTreeNode[]) and 'isExpanded'
1 parent 4989433 commit 5236e37

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎webview-ui/src/components/history/__tests__/taskOrganizationModel.coverage.spec.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ function makeTask(overrides: Partial<HistoryItem> = {}): HistoryItem {
3636
function makeGroup(task: HistoryItem, children: HistoryItem[] = []): TaskGroup {
3737
return {
3838
parent: task,
39-
children,
39+
subtasks: children.map((item) => ({ item, children: [], isExpanded: false })),
40+
isExpanded: false,
4041
}
4142
}
4243

0 commit comments

Comments
 (0)