Skip to content

Conversation

@erocheleau
Copy link
Collaborator

SFINT-6544

When the citation title is null or undefined, we try to call .trim() on it and it throws an exception preventing the correct rendering of the generated answer.

I unfortunately don't really know where we should add tests for this?

Copy link
Contributor

@SimonMilord SimonMilord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks fine but you sure we can't just mock a citation object with title=null and spy on an error being thrown?

Were you able to reproduce it and test the fix manually?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants