Refactor SplitTextComponent to store parent and text data in Record object (#1998)
refactor: Update SplitTextComponent to store parent and text data in Record object
This commit is contained in:
parent
8250c2a2eb
commit
0c32bbe182
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ class SplitTextComponent(CustomComponent):
|
|||
chunks = [chunk[:truncate_size] for chunk in chunks]
|
||||
|
||||
for chunk in chunks:
|
||||
outputs.append(Record(text=chunk, data={"parent": text}))
|
||||
outputs.append(Record(data={"parent": text, "text": chunk}))
|
||||
|
||||
self.status = outputs
|
||||
return outputs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue