mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-02-15 13:17:32 +00:00
fix(chat): handle potential null content in message before splitting lines
This commit is contained in:
@@ -263,7 +263,7 @@ const MessageComponent = memo(({ message, index, prevMessage, createDiff, onFile
|
||||
Interactive Prompt
|
||||
</h4>
|
||||
{(() => {
|
||||
const lines = message.content.split('\n').filter(line => line.trim());
|
||||
const lines = (message.content || '').split('\n').filter(line => line.trim());
|
||||
const questionLine = lines.find(line => line.includes('?')) || lines[0] || '';
|
||||
const options = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user