-
-
Notifications
You must be signed in to change notification settings - Fork 17.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Fix Cannot read properties of undefined (reading 'replace') #1127
Conversation
thanks for the suggested fix! Can you let me know how to replicate the issue? I've been trying to use the Conversational Retrieval QA Chain template, but mine works everytime |
For example, if you have an empty confluence page, the document results will end up with undefined pagecontent and some metadata. Also if you drag a confluence loader as document input then replace it with other loader, it also end up with undefined pagecontent with a confluence element in the document array. |
@chz8494 do you have any other examples? I was not able to have Confluence setup correctly |
I’ll change that in my PR. My actual fix was supposed to be just "if (flattenDocs[i].pageContent !== undefined)" but had put it only flattenDocs[i] accidentally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @chz8494 !
[Bug] Fix Cannot read properties of undefined (reading 'replace')
undefined document pagecontent is causing reading issue with replace function.
fix for:
#1106 #1123