Error Details: Custom error: text.replace is not a function

Hi, I am getting an error while making simple edits of a simple project. Please, advise what can be done here to fix it.

@xKevIsDev seems like sanitizeText function written in streamtext is causing an issue

@xKevIsDev
We are receiving an array as the data type for text instead of a string which is causing the error. This issue occurs only when clicking the buttons received in response in Discuss mode. Since you originally wrote the code for Discuss mode, I think you should be able to fix it quickly.

Hi,

Can you try this PR :

Br,

Stijnus

1 Like