Skip to content

Commit

Permalink
Revert "fix(Code Node): Handle user code returning null and `undefi…
Browse files Browse the repository at this point in the history
…ned` (#5989)"

This reverts commit a3664de.
  • Loading branch information
netroy committed Apr 18, 2023
1 parent 33299ca commit d42e484
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/nodes-base/nodes/Code/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ function isTraversable(maybe: unknown): maybe is IDataObject {
*/
export function standardizeOutput(output: IDataObject) {
function standardizeOutputRecursive(obj: IDataObject, knownObjects = new WeakSet()): IDataObject {
if (obj === undefined || obj === null) return obj;
for (const [key, value] of Object.entries(obj)) {
if (!isTraversable(value)) continue;

Expand Down

0 comments on commit d42e484

Please sign in to comment.