mirror of
https://github.com/infinilabs/coco-app.git
synced 2025-12-16 19:47:43 +01:00
refactor: check if the message block is purely blank (#651)
This commit is contained in:
@@ -63,7 +63,7 @@ export const useStreamChat = (options: Options) => {
|
||||
}
|
||||
|
||||
// If the chunk data does not contain a message_chunk, we ignore it
|
||||
if (chunkData.message_chunk) {
|
||||
if (chunkData.message_chunk.trim()) {
|
||||
setVisible(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user