Skip to content

Commit

Permalink
Populate parent field
Browse files Browse the repository at this point in the history
  • Loading branch information
overmode committed Nov 28, 2024
1 parent 6919b47 commit 82b47ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion front/components/data_source/DocumentUploadOrEditModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export const DocumentUploadOrEditModal = ({
const body = {
name: initialId ?? document.name,
timestamp: null,
parents: null,
parents: [initialId ?? document.name],
section: { prefix: null, content: document.text, sections: [] },
text: null,
source_url: document.sourceUrl || undefined,
Expand Down
2 changes: 1 addition & 1 deletion front/components/data_source/MultipleDocumentsUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export const MultipleDocumentsUpload = ({
const body = {
name: blob.filename,
timestamp: null,
parents: null,
parents: [blob.filename],
section: {
prefix: null,
content: content,
Expand Down

0 comments on commit 82b47ae

Please sign in to comment.