mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +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[] =>
|
||||
inputData.reduce<IDataObject[]>(
|
||||
(acc, item) => (isJsonKeyObject(item) ? acc.concat(item.json) : acc),
|
||||
[],
|
||||
);
|
||||
inputData.reduce<IDataObject[]>((acc, item) => {
|
||||
if (isJsonKeyObject(item)) {
|
||||
acc.push(item.json);
|
||||
}
|
||||
|
||||
return acc;
|
||||
}, []);
|
||||
|
||||
export const hasOnlyListMode = (parameter: INodeProperties): boolean => {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user