mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 03:12:15 +00:00
perf(editor): Improve executionDataToJson performance (no-changelog) (#18397)
This commit is contained in:
@@ -100,10 +100,13 @@ export function isValueExpression(
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const executionDataToJson = (inputData: INodeExecutionData[]): IDataObject[] =>
|
export const executionDataToJson = (inputData: INodeExecutionData[]): IDataObject[] =>
|
||||||
inputData.reduce<IDataObject[]>(
|
inputData.reduce<IDataObject[]>((acc, item) => {
|
||||||
(acc, item) => (isJsonKeyObject(item) ? acc.concat(item.json) : acc),
|
if (isJsonKeyObject(item)) {
|
||||||
[],
|
acc.push(item.json);
|
||||||
);
|
}
|
||||||
|
|
||||||
|
return acc;
|
||||||
|
}, []);
|
||||||
|
|
||||||
export const hasOnlyListMode = (parameter: INodeProperties): boolean => {
|
export const hasOnlyListMode = (parameter: INodeProperties): boolean => {
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user