mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(Text Classifier Node): Return error for empty inputText (#15390)
This commit is contained in:
@@ -20,7 +20,7 @@ export async function processItem(
|
||||
): Promise<Record<string, unknown>> {
|
||||
const input = ctx.getNodeParameter('inputText', itemIndex) as string;
|
||||
|
||||
if (input === undefined || input === null) {
|
||||
if (!input) {
|
||||
throw new NodeOperationError(
|
||||
ctx.getNode(),
|
||||
`Text to classify for item ${itemIndex} is not defined`,
|
||||
|
||||
Reference in New Issue
Block a user