Преглед изворни кода

fix: restore content undefined check in WriteToFileTool.handlePartial() (#9614)

Daniel пре 2 месеци
родитељ
комит
a8a44510d5
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/core/tools/WriteToFileTool.ts

+ 1 - 1
src/core/tools/WriteToFileTool.ts

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