u
This commit is contained in:
@@ -688,6 +688,7 @@ class LieferungNeuPage extends PureComponent {
|
||||
}
|
||||
|
||||
async handleMentionInChat(attachment) {
|
||||
console.log('[neu.jsx] handleMentionInChat called', attachment);
|
||||
if (!attachment) return;
|
||||
let text = attachment.text;
|
||||
if (!text && (!attachment.file || attachment.file.size === 0)) {
|
||||
@@ -708,11 +709,16 @@ class LieferungNeuPage extends PureComponent {
|
||||
}
|
||||
|
||||
const trimmed = (text || '').trim();
|
||||
if (!trimmed) return;
|
||||
if (!trimmed) {
|
||||
console.warn('[neu.jsx] handleMentionInChat: text is empty for attachment', attachment);
|
||||
return;
|
||||
}
|
||||
|
||||
console.log('[neu.jsx] Inserting extraction snippet to chat, length:', trimmed.length);
|
||||
chatAutomat.actions.insertExtractionSnippet({
|
||||
text: trimmed,
|
||||
label: 'parsed invoice',
|
||||
instruction: "use 'Process Incoming Product and Invoices' SKILL to fill drafts/delivery vfs file",
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user