🐛 (chat.py): add check for message.text being a string to prevent errors

♻️ (index.ts): refactor variable names for clarity and add debug logging
♻️ (IOModal/index.tsx): reformat code for better readability and consistency
✨ (IOModal/index.tsx): add excluded fields parameter to getMessagesTable calls
This commit is contained in:
cristhianzl 2024-06-10 20:06:31 -03:00
commit 972f44ce7b
3 changed files with 45 additions and 35 deletions

View file

@ -79,6 +79,6 @@ class ChatComponent(CustomComponent):
text=input_value, sender=sender, sender_name=sender_name, files=files, session_id=session_id
)
self.status = message
if session_id and isinstance(message, Message):
if session_id and isinstance(message, Message) and isinstance(message.text, str):
self.store_message(message)
return message