EmbeddedChat
EmbeddedChat copied to clipboard
bug: Search Messages crashes on 429 from server
Description:
TypeError: Cannot read properties of undefined (reading 'length') appears when too many search requests are sent back to back in Search Messages Sidebar
Steps to reproduce:
- Goto https://rocketchat.github.io/EmbeddedChat/?path=/story/embeddedchat-simple--simple
- Open
Search Messagessidebar - Search repeatedly until the server returns
429. - Observer the
TypeError: Cannot read properties of undefined (reading 'length')
Expected behavior:
No error should appear.
Actual behavior:
Network tab on the right side is showing requests:
https://github.com/user-attachments/assets/15fb6766-ca64-4b2d-bd2b-8f5dee867afb