Skip to content

Commit d166afc

Browse files
committed
Prevent overwriting rename source with empty file content
- sometimes, when renaming files, 'content' is empty
1 parent 5b9d099 commit d166afc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/editor/src/commands/apply-response-command/handlers/conflict-markers-handler.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export const handle_conflict_markers = async (params: {
113113
original_content: rename_source_content,
114114
markers_content: file.content
115115
})
116-
} else {
116+
} else if (file.content != '') {
117117
new_content = file.content
118118
}
119119

0 commit comments

Comments
 (0)