Skip to content

Commit 44326c3

Browse files
committed
fix: update item name assignment in base_document_split_node to handle default case
1 parent 6503053 commit 44326c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/application/flow/step_node/document_split_node/impl/base_document_split_node.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ def _process_split_result(
112112
'source_file_id': source_file_id,
113113
'source_url': file_name,
114114
}
115-
item['name'] = item.get('name', file_name)
115+
if item.get('name', 'file.txt') == 'file.txt':
116+
item['name'] = file_name
116117
item['source_file_id'] = source_file_id
117118
item['paragraphs'] = item.pop('content', item.get('paragraphs', []))
118119

0 commit comments

Comments
 (0)