mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
Check for message category presence (#114)
This commit is contained in:
parent
e90b0bbff9
commit
8cb28b5651
@ -84,7 +84,7 @@ export const Messages = React.forwardRef<HTMLDivElement, MessagesProps>((props:
|
||||
const isFirst = index === 0;
|
||||
const isLast = index === messages.length - 1;
|
||||
|
||||
if (!isUserMessage && message.category !== 'UserResponse') {
|
||||
if (!isUserMessage && message.category && message.category !== 'UserResponse') {
|
||||
const lastUserResponse = getLastUserResponse(index);
|
||||
if (!lastUserResponse) {
|
||||
return null;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user