mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: restore content undefined check in WriteToFileTool.handlePartial() (#9614)
This commit is contained in:
parent
56c630ca92
commit
a8a44510d5
1 changed files with 1 additions and 1 deletions
|
|
@ -291,7 +291,7 @@ export class WriteToFileTool extends BaseTool<"write_to_file"> {
|
|||
const relPath: string | undefined = block.params.path
|
||||
let newContent: string | undefined = block.params.content
|
||||
|
||||
if (!relPath) {
|
||||
if (!relPath || newContent === undefined) {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue