mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix: Correct connections in SentimentAnalysis and TextClassifier (#14155)
This commit is contained in:
@@ -22,9 +22,9 @@ const configuredOutputs = (parameters: INodeParameters) => {
|
||||
const categories = ((parameters.categories as IDataObject)?.categories as IDataObject[]) ?? [];
|
||||
const fallback = (parameters.options as IDataObject)?.fallback as string;
|
||||
const ret = categories.map((cat) => {
|
||||
return { type: NodeConnectionTypes.Main, displayName: cat.category };
|
||||
return { type: 'main', displayName: cat.category };
|
||||
});
|
||||
if (fallback === 'other') ret.push({ type: NodeConnectionTypes.Main, displayName: 'Other' });
|
||||
if (fallback === 'other') ret.push({ type: 'main', displayName: 'Other' });
|
||||
return ret;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user