mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
clean up not needed changes
This commit is contained in:
parent
c87247b8e9
commit
a0acfec14c
|
@ -126,7 +126,7 @@ export const createVectorStoreNode = (args: VectorStoreNodeConstructorArgs) =>
|
||||||
name: args.meta.name,
|
name: args.meta.name,
|
||||||
description: args.meta.description,
|
description: args.meta.description,
|
||||||
icon: args.meta.icon,
|
icon: args.meta.icon,
|
||||||
group: ['transform', 'vector-store'],
|
group: ['transform'],
|
||||||
version: 1,
|
version: 1,
|
||||||
defaults: {
|
defaults: {
|
||||||
name: args.meta.displayName,
|
name: args.meta.displayName,
|
||||||
|
|
|
@ -308,10 +308,7 @@ export class LoadNodesAndCredentials {
|
||||||
const description: INodeTypeBaseDescription | INodeTypeDescription =
|
const description: INodeTypeBaseDescription | INodeTypeDescription =
|
||||||
structuredClone(usableNode);
|
structuredClone(usableNode);
|
||||||
|
|
||||||
// avoid spiking memory during startup, loading all node classes into memory
|
const nodeType = this.getCurrentVersionNodeType(usableNode);
|
||||||
const nodeType = usableNode.usableAsTool
|
|
||||||
? this.getCurrentVersionNodeType(usableNode)
|
|
||||||
: undefined;
|
|
||||||
const wrapped = this.convertNodeToAiTool({
|
const wrapped = this.convertNodeToAiTool({
|
||||||
description,
|
description,
|
||||||
setupAsTool: nodeType?.setupAsTool,
|
setupAsTool: nodeType?.setupAsTool,
|
||||||
|
|
Loading…
Reference in a new issue