mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: add optional chaining to prevent null reference in totalClineMessages
This commit is contained in:
parent
b9b69ef9c5
commit
4509f27dcc
1 changed files with 1 additions and 1 deletions
|
|
@ -1676,7 +1676,7 @@ export class ClineProvider
|
|||
}
|
||||
return allMessages
|
||||
})(),
|
||||
totalClineMessages: this.getCurrentCline()?.clineMessages.length || 0,
|
||||
totalClineMessages: this.getCurrentCline()?.clineMessages?.length || 0,
|
||||
taskHistory: (taskHistory || [])
|
||||
.filter((item: HistoryItem) => item.ts && item.task)
|
||||
.sort((a: HistoryItem, b: HistoryItem) => b.ts - a.ts),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue