mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 08:34:07 -08:00
fix types
This commit is contained in:
parent
785b30e675
commit
597aa3ee3b
|
@ -17,7 +17,6 @@ import { Document } from '@langchain/core/documents';
|
|||
|
||||
import type { SetField, SetNodeOptions } from 'n8n-nodes-base/dist/nodes/Set/v2/helpers/interfaces';
|
||||
import * as manual from 'n8n-nodes-base/dist/nodes/Set/v2/manual.mode';
|
||||
import get from 'lodash/get';
|
||||
import type { CallbackManagerForRetrieverRun } from '@langchain/core/callbacks/manager';
|
||||
import { logWrapper } from '../../../utils/logWrapper';
|
||||
|
||||
|
@ -411,8 +410,7 @@ export class RetrieverWorkflow implements INodeType {
|
|||
throw new NodeOperationError(this.executeFunctions.getNode(), error as Error);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line lodash/path-style
|
||||
const receivedItems = get(receivedData, ['data', 0]) ?? [];
|
||||
const receivedItems = receivedData.data?.[0] ?? [];
|
||||
|
||||
const returnData: Document[] = [];
|
||||
for (const [index, itemData] of receivedItems.entries()) {
|
||||
|
|
Loading…
Reference in a new issue