fix(Text Classifier Node): Return error for empty inputText (#15390)

This commit is contained in:
Benjamin Schroth
2025-05-14 16:40:51 +02:00
committed by GitHub
parent 8717ad7821
commit 71e5584d28
4 changed files with 344 additions and 3 deletions

View File

@@ -241,7 +241,6 @@ export class TextClassifier implements INodeType {
const batchPromises = batch.map(async (_item, batchItemIndex) => {
const itemIndex = i + batchItemIndex;
const item = items[itemIndex];
item.pairedItem = { item: itemIndex };
return await processItem(
this,
@@ -291,7 +290,6 @@ export class TextClassifier implements INodeType {
} else {
for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
const item = items[itemIndex];
item.pairedItem = { item: itemIndex };
try {
const output = await processItem(