u
This commit is contained in:
@@ -69,6 +69,7 @@ export class Attachment extends PureComponent {
|
||||
handleMentionInChat = async (e) => {
|
||||
e?.stopPropagation?.();
|
||||
const { attachment, onMentionInChat } = this.props;
|
||||
console.log('[Attachment] Mention in chat clicked', attachment);
|
||||
if (!attachment) return;
|
||||
|
||||
if (onMentionInChat) {
|
||||
@@ -105,11 +106,15 @@ export class Attachment extends PureComponent {
|
||||
}
|
||||
|
||||
const trimmed = (textContent || '').trim();
|
||||
if (!trimmed) return;
|
||||
if (!trimmed) {
|
||||
console.warn('[Attachment] No text found to mention in chat', attachment);
|
||||
return;
|
||||
}
|
||||
|
||||
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