mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(Merge Node): Do not error if expected key is missing
This commit is contained in:
@@ -414,7 +414,15 @@ export function checkMatchFieldsInput(data: IDataObject[]) {
|
||||
return data as PairToMatch[];
|
||||
}
|
||||
|
||||
export function checkInput(
|
||||
export function checkInput(input: INodeExecutionData[]) {
|
||||
if (!input) return [];
|
||||
if (input.some((item) => isEmpty(item.json))) {
|
||||
input = input.filter((item) => !isEmpty(item.json));
|
||||
}
|
||||
return input;
|
||||
}
|
||||
|
||||
export function checkInputAndThrowError(
|
||||
input: INodeExecutionData[],
|
||||
fields: string[],
|
||||
disableDotNotation: boolean,
|
||||
|
||||
Reference in New Issue
Block a user