fix(core): Remove circular refs from Code and push msg (#5741)
* remove circular refs from code items (and lint fixes) * cleanup --------- * add some tests Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
committed by
GitHub
parent
199a91b398
commit
b6d8a0f985
@@ -1,4 +1,4 @@
|
||||
import { LoggerProxy as Logger } from 'n8n-workflow';
|
||||
import { jsonStringify, LoggerProxy as Logger } from 'n8n-workflow';
|
||||
import type { IPushDataType } from '@/Interfaces';
|
||||
import { eventBus } from '../eventbus';
|
||||
|
||||
@@ -38,7 +38,7 @@ export abstract class AbstractPush<T> {
|
||||
|
||||
Logger.debug(`Send data of type "${type}" to editor-UI`, { dataType: type, sessionId });
|
||||
|
||||
const sendData = JSON.stringify({ type, data });
|
||||
const sendData = jsonStringify({ type, data }, { replaceCircularRefs: true });
|
||||
|
||||
if (sessionId === undefined) {
|
||||
// Send to all connected clients
|
||||
|
||||
Reference in New Issue
Block a user